Colorbox

CE
PE
EE

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

Pressing left, right, up, or down arrow keys to change the selected color.

Colorbox in Menu

By setting content attribute of

</code> to create a colorbox in menu. ![](/zk_component_ref/images/ZKComRef_Colorbox_Examples2.PNG) ```xml ``` # Supported Events

Name

Event Type

onChange

Event: [org.zkoss.zk.ui.event.InputEvent](https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zk/ui/event/InputEvent.html) Notifies the application with the onChange event if its content is changed

- Inherited Supported Events: [ XulElement](/zk_component_ref/base_components/xulelement#Supported_Events) # Supported Children `*None` # Use Cases | Version | Description | Example Location | |---------|-------------|------------------| | | | | # Version History | Version | Date | Content | |---------|------|---------| | | | |