Difference between revisions of "DwtColorPicker"
m |
|||
Line 9: | Line 9: | ||
== Overview == | == Overview == | ||
Creates a color picker displaying "Web safe" colours. Instances of this class may be used with DwtMenu to create a ColorPicker menu. Clicking on a color cell generates a DwtSelectionEvent the detail attribute of which contains the color string associated the cell on which the user clicked | Creates a color picker displaying "Web safe" colours. Instances of this class may be used with DwtMenu to create a ColorPicker menu. Clicking on a color cell generates a DwtSelectionEvent the detail attribute of which contains the color string associated the cell on which the user clicked | ||
+ | |||
+ | |||
+ | == Example == | ||
+ | <code> | ||
+ | function colorListener(event) | ||
+ | { | ||
+ | // just an alert box with the selected color number | ||
+ | alert(event.detail); | ||
+ | } | ||
+ | </code> |
Revision as of 07:08, 5 April 2006
Zimbra AjaxTk->DHTML Widget Toolkit->Widgets
DwtColorPicker(parent, className, posStyle)
parent
- the widget parent, can be a DwtShell (or a DwtMenu????)
className
- the name of a css style class to be assigned to the widget
posStyle
Overview
Creates a color picker displaying "Web safe" colours. Instances of this class may be used with DwtMenu to create a ColorPicker menu. Clicking on a color cell generates a DwtSelectionEvent the detail attribute of which contains the color string associated the cell on which the user clicked
Example
function colorListener(event) { // just an alert box with the selected color number alert(event.detail); }