Version 21.2

ColorPickerModel Class Properties

For a list of all members of this type, see ColorPickerModel members.

Public Properties
 NameDescription
Public PropertyClientEventsSet implementations of client events raised by a widget.

Event handler assumes 2 parameters: 1st parameter has name "evt" and 2nd parameter has name "ui". To get information about member variables available for "ui" parameter, please consult documentation of a widget and its events.

Examples:

1. Full implementation:

new Dictionary<string, string> { { "dropDownOpening", "function(evt,ui){alert('drop:'+ui.owner);}" } }

2. Content of inline function:

new Dictionary<string, string> { { "dropDownOpening", "alert('drop:'+ui.owner);" } }

3. Name of global function:

new Dictionary<string, string> { { "dropDownOpening", "nameOfGlobalFunction" } } Note:

Instead of explicit key-strings, which represent name of event exposed by a widget, the event-constants defined by a particular control can be used.

Example:

new Dictionary<string, string> { { ComboClientEvents.DropDownOpening, "nameOfGlobalFunction" } } (Inherited from Infragistics.Web.Mvc.ModelWidgetBase)
Public PropertyColorsGets/Sets the default colors. Default colors are the ones displayed in the upper table of the color picker. The array should contain arrays that contain the color values for every next row.  
Public PropertyHtmlAttributesSets custom attributes for main html element used by control

Dictionary of attributes passed to TagBuilder.MergeAttributes(value).

 
Public PropertyIDSets the ID of the color picker.  
Public PropertyStandardColorsGets/Sets the standard colors. Standard colors are the ones displayed in the color picker bottom, visually separated from the default colors. The array should contain the color values.  
Protected Properties
 NameDescription
Protected PropertyStoreReturn the store with all of the options (Inherited from Infragistics.Web.Mvc.ModelBase)
See Also

View on GitHub