DwtColorPicker

Revision as of 07:08, 5 April 2006 by IamPersistent (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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);
 }

Jump to: navigation, search