mediaSize()
Set the device display area.
Syntax
mediaSize(
msize STRING )
- msize is a media size specification representing the screens of mobile
devices (smartphones and tablets), as well as web browsers on a desktop computer. The options
are:
small
- client is configured for a smartphonemedium
- client is configured for a tabletlarge
- client is configured for a desktop screen
Usage
You can use it to test the client response to rendering application forms with the specified screen size. This allows you to test responsive layout for form elements that can adapt depending on the screen size.
For more information on responsive layout, see topics in the responsive layout section of the Genero Business Development Language User Guide.
On success the ggc.statusCode
is set to SUCCESS
, otherwise
ggc.statusMsg
provides a detailed error message.
For example:
CALL ggc.mediaSize("small")