Color Picker
note
Color Picker is available only for web responsive apps.
Color Picker widget helps in selecting a color and translate to the hex value. The Color Picker Tool can be used to select a color on any image opened on your screen. By clicking a point on an image, you can change the active color to that which is located under the pointer.
Properties
Property | Description |
---|---|
Name | The name is a unique identifier for Color Picker widget. |
Placeholder | A placeholder is text to show in the editor when there is no value. A common use of this is a search box that says in faint gray italicized text "Search..." which disappears as soon as the user starts to edit the text box. This is a useful alternative to a caption if you are constrained in space and asking for something simple of the user. |
Accessibility | |
Tab index | The tab index attribute specifies the tab order of an element. You can use this property to change the default tabbing order for widget access using the tab key. The value can range from 0 to 32767. The default is 0 and -1 makes the element non-focusable. NOTE: In Safari browsers, by default, Tab highlights only text fields. To enable Tab functionality, in Safari Browser from Preferences -> Advanced -> Accessibility set the option "Press Tab to highlight each item on a webpage". |
Shortcut key | The shortcut key property specifies a shortcut key to activate/focus an element. (*See below for details) |
Default Value | |
Value | This is the default value to display value for an editor widget. Note that the display value is just what the user sees initially, and is not always the dataValue returned by the widget. |
Behavior | |
Read Only | Selecting this checkbox property prevents the user from being able to change the data value of a widget. |
Show | Showing determines whether or not a component is visible. It is a bindable property. |
Load on Demand (visible only when show property is bound to a variable) | When this property is set and show property is bound, the initialization of the widget will be deferred till the widget becomes visible. This behavior improves the load time. Use this feature with caution, as it has a downside (as we will not be able to interact with the widget through script until the widget is initialized). When show property is not bound the widget will be initialized immediately. |
Disabled | If the disabled property is true (checked) the value of the editor cannot change. The widget becomes display-only. |
Auto Close | This property defines when to close the colorpicker popover. Outside Click: picker popover will close when user clicks anywhere outside the picker area. Always: picker popover will close when user clicks anywhere on the page. Disabled: picker popover will close only when user press enter key on the picker input field. |
*Shortcut key: The shortcut key property specifies a shortcut key to click the button. The way of accessing the shortcut key is varying in different browsers:
Browser | Shortcut key Trigger |
---|---|
Internet Explorer | [Alt] + shortcut key |
Chrome | [Alt] + shortcut key (Windows/Linux) |
[Control][Alt] + shortcut key (MAC) | |
Firefox | [Alt][Shift] + shortcut key (Windows/Linux) |
[Control][Alt] + shortcut key (MAC) |
Events
Event | Description |
---|---|
Change | This event handler is called each time your element's value changes. |
On focus | This event handler is called each time your element is focused. |
On blur | This event handler is called each time your focus leaves your element. |
Mouse Events | |
On click | This event handler is called whenever the click event is triggered on a widget. |
On double click | This event handler is called whenever the double click event is triggered on a widget. |
On mouse leave | This event handler is called whenever the mouse leaves the widget. |
Touch Events | |
On tap | This event handler is called whenever the tap event is triggered on a widget. |