org.zkoss.zul.grid.responsive
Property:
org.zkoss.zul.grid.responsive
Applicable:
-
globally in
zk.xmlvia<library-property> -
nested in a zul file via
<custom-attribute>
Default: unset (no responsive mode)
since 11.0.0
Sets the default responsive policy of the grids that do not set responsive themselves. Allowed values:
stacking: each row becomes a block of label and value pairs when the grid is narrower than the breakpoint.none: no responsive behavior.
An invalid value is ignored with a warning in the server log, and the grid keeps the normal table layout.
A grid’s own responsive attribute always wins. Set this property in zk.xml to apply stacking to the whole application:
<library-property>
<name>org.zkoss.zul.grid.responsive</name>
<value>stacking</value>
</library-property>
Or set it as a custom attribute on a page or a component subtree:
<grid>
<custom-attributes org.zkoss.zul.grid.responsive="stacking"/>
...
Stacking itself is provided by ZK EE (zkmax). Community Edition stores the value but does not stack the rows.
See also org.zkoss.zul.grid.responsive.columns and Responsive Stacking Grid.