Select to view content in your preferred language

Adding mobile breakpoint programmatically

1224
6
Jump to solution
11-02-2018 07:15 AM
joerodmey
MVP Alum

I'm looking to use code to add in the mobile breakpoint into my URLs instead of doing it through my web server. Is this an option?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Joe,

  In your code just use this:

window.jimuConfig.breakPoints[0] = 410;

View solution in original post

6 Replies
RobertScheitlin__GISP
MVP Emeritus

Joe,

  In your code just use this:

window.jimuConfig.breakPoints[0] = 410;

joerodmey
MVP Alum

Just to confirm that would provide the same results as the following:

https://domanin.com/testingApp/?mobileBreakPoint=10 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Correct

0 Kudos
DDUEDesarrollo_Urbano_y_Ecolog
New Contributor

And the popup window can you modify your view from the mobile device?

thanks

0 Kudos
JamesMadden1
Frequent Contributor

I have implemented the above solution but the layout only changes after the the window resizes.  Is there anyway to update the layout immediately after changing the breakpoints? 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

James,

  Get a reference to the ConfigManager.js and call the _onWindowResize method.

0 Kudos