{ WebProperty=Client } Property Integer piMaxWidth
Web Property Read Access: | WebGet piMaxWidth to IntegerVariable |
Web Property Write Access: | WebSet piMaxWidth to IntegerVariable/Value |
Read Access: | Get piMaxWidth to IntegerVariable |
Write Access: | Set piMaxWidth to IntegerVariable/Value |
Typically, in a responsive application you will want a hybrid behavior where the view should react responsively up to a maximum width. Once that maximum width is reached, the objects within the view should maintain the same width. The piMaxWidth property is used for this. When piMaxWidth is set, you are instructing the browser that the width should adjust responsively only up to a maximum width.
Set piMaxWidth to 800
Once the maximum width is reached, the view's width will not change and padding will be added to the right or left hand side of the view. This is controlled at the application level by setting peAlignView.
Default value is 0.
You should not use piMaxWidth and piWidth in the same view. piMaxWidth is the preferred choice for a responsive application.
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.