Data-Scrollable
data-scrollable="true"
If you specify the attribute with true on a
ContainerWidget
or
MeshWidget
including <window>, <groupbox>, <panelchildren>, <tabpanel>, <grid>, <listbox>, <tree> (a scrollable container),
the error message box (poped up by violating rules in constraint
attribute), combobox popup, datebox popup, inside the container
component will also move by scrolling. (For more information, please refer to zul.ContainerWidget Those popups will disappear
when you scroll them out of the visible area.

Usage example
<div xmlns:ca="client/attribute">
<window height="100px" contentStyle="overflow:auto" ca:data-scrollable="true">
<textbox constraint="no empty"/>
<separator height="100px"/>
</window>
</div>
- Try to trigger an error box of the Textbox and scroll down.
If you specify true on a
ContainerWidget
or
MeshWidget,
the popup inside the container component will also move by
scrolling.
Usage example
<div xmlns:ca="client/attribute">
<window height="100px" contentStyle="overflow:auto" ca:data-scrollable="true">
<label value="Left click" popup="pop"/><separator/>
<separator height="20px"/>
<popup id="pop">
popup
</popup>
</window>
</div>
- Click the label, trigger a popup, and scroll down.
<div xmlns:ca="client/attribute">
<window height="100px" contentStyle="overflow:auto" ca:data-scrollable="true">
<label value="Right click" context="ctx"/>
<separator height="20px"/>
<popup id="ctx">
popup
</popup>
</window>
</div>
- Right click the label, trigger a popup, and scroll down.
data-scrollable="false"
When a user swipes on the content of Listbox, Grid, Tree in a tablet device, the friendly scrollbar will appear. To disable the friendly scrollbar, please use the following setting.
For more information, please refer to ZK Component Reference Tablet Devices: Listbox, ZK Component Reference Tablet Devices: Grid, ZK Component Reference Tablet Devices: Tree.
tablet only
<div xmlns:ca="client/attribute">
<listbox ca:data-scrollable="false"/>
</div>