Colorbox
- Demonstration: Colorbox
- Java API: org.zkoss.zkex.zul.Colorbox
- JavaScript API: zkex.inp.Colorbox
Employment/Purpose
A Colorbox used to retrieve an input that the user can select a color.
Example
<colorbox color="#FFFFFF" />
Key control
since 6.0.0
Pressing left, right, up, or down arrow keys to change the selected color.
Colorbox in Menu
By setting content attribute of <menu>to create a colorbox in menu.
<menubar id="menubar" >
<menu label="Color" iconSclass="z-icon-binoculars">
<menupopup>
<menuitem label="Index" onClick="alert(self.label)" />
<menu label="Color Picker" content="#color=#184dc6"/>
</menupopup>
</menu>
</menubar>
Supported Events
| Name | Event Type |
|---|---|
| onChange | Event: org.zkoss.zk.ui.event.InputEvent Notifies the application with the onChange event if its content is changed |
- Inherited Supported Events: XulElement
Supported Children
*None