splitter

Purpose

An element which should appear before or after an element inside a box (Box, Vbox and Hbox).When the splitter is dragged, the sibling elements of the splitter are resized. If getCollapse() is true, a grippy in placed inside the splitter, and one sibling element of the splitter is collapsed when the grippy is clicked. If the Splitter is used in a context that allows resizing, it will be draggable. To make it collapsible only, it can be used in a different context, e.g. with Borderlayout.

Examples

<z:hbox spacing="0" width="100%">
    <z:vbox height="200px">
        <z:label value="Column 1-1: The left-top box. To know whether a splitter is collapsed,you can listen to the onOpen event."/>
        <z:splitter collapse="after" />
        <z:label value="Column 1-2: You can enforce to open or collapse programming by calling setOpen method."/>
    </z:vbox>
    <z:splitter collapse="before" />
    <z:label value="Column 2: Whether a splitter allows users to open or collapse depending on the collapse attribue."/>
</z:hbox>

Description

Attributes

ZK Official Reference

Component Reference

Show splitter Component Reference

Java API

Show splitter Java API