Client-Side Attributes
Client-Side Attributes
In addition to standard component attributes, ZK allows specifying client-side behaviors and configurations directly in ZUML using data- attributes within the client namespace. These attributes influence how the component’s client-side widget behaves.
Here are some of the client data attributes:
data-swipeable: Configures whether a component supports swipe gestures, enabling features like closing/openingborderlayoutregions, switchingtabboxtabs, navigatinglistbox,grid,treepaging, and changingcalendarviews (primarily for EE tablet-only).data-scrollable: Controls the scrolling behavior of popups (like error boxes, combobox, and datebox popups) within scrollable containers (window,groupbox,panelchildren,tabpanel,grid,listbox,tree), making them scroll with the container. Can also disable the friendly scrollbar on tablet devices forListbox,Grid, andTree.data-embed-scrollbar: Determines if the ZK customized scrollbar is embedded within mesh widget components (Grid,Listbox,Tree) and layout regions (Center,South,North, etc.).data-fix-scroll-position: Applied to input elements liketextboxto fix the scroll position, preventing conflicts with virtual keyboard navigation on devices like iPad.data-animation-speed: Sets the animation speed for components likepanelandcardlayout. Accepts ‘slow’, ‘fast’, or integer values (0 for no animation).
For a detailed reference of available client attributes and their usage, please refer to the ZUML Client Attribute Reference.