Tapestry 5.4.3 Demos (in progress) : ColorPicker

The ColorPicker component provides a JavaScript powered pop-up window to select a color from a 216-color palette. The component should be used inside a Form component. The component is rendered as a read only input text field with an icon. Clicking the icon would launch a pop-up window for color selection. The selected color is displayed as the background color of the input text field. The value of the text field is set to the hexadecimal code of the selected color.

Parameter name Type Required Default Default Prefix Description
color java.lang.String yes   prop A parameter to hold the selected color in hexadecimal. (eg #FFFFFF for white)
disabled boolean no false prop If true, the launching of pop-up window would be disabled.

Online demo