STRETCHCOLUMNS attribute
The STRETCHCOLUMNS
attribute makes all TABLE/TREE
columns stretchable.
Syntax
STRETCHCOLUMNS[
@screen-size]
where screen-size can
be:
{
SMALL |
MEDIUM |
LARGE }
- screen-size is a screen size selector that indicates when the stretch
attribute must apply, depending on the size of the screen. Several
STRETCHCOLUMNS@screen-size
attributes can be used for the same element.
Usage
The STRETCHCOLUMNS
attribute makes all columns of a TABLE
or TREE
container stretch or shrink, when
the width of the container changes.
The STRETCHCOLUMNS
attribute at the TABLE/TREE
level can be
combined with individual STRETCH=NONE
attributes defined at the column level.
To create a responsive layout form, the STRETCHCOLUMNS
attribute can be combined
with the @screen-size
selector, to get different stretch
behaviors depending on the screen size.
STRETCHCOLUMNS
can be combined with field-specific STRETCHMIN
and STRETCHMAX
attributes, to control
the width of a table column.
Example
TABLE mytable ( STRETCHCOLUMNS@LARGE )