org.zkoss.zul.listbox.responsive
Property:
org.zkoss.zul.listbox.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 listboxes that do not set responsive themselves. Allowed values:
stacking: each list item becomes a card of label and value pairs when the listbox is narrower than the breakpoint.none: no responsive behavior.
An invalid value is ignored with a warning in the server log, and the listbox keeps the normal table layout.
A listbox’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.listbox.responsive</name>
<value>stacking</value>
</library-property>
Or set it as a custom attribute on a page or a component subtree:
<listbox>
<custom-attributes org.zkoss.zul.listbox.responsive="stacking"/>
...
Stacking itself is provided by ZK EE (zkmax). Community Edition stores the value but does not stack the items.
See also org.zkoss.zul.listbox.responsive.columns and Responsive Stacking Listbox.