Class wink.ui.xy.ColorPicker
Implement a colorpicker.
Displays a color panel where user can choose betwwen 30 different colors. An event is fired when the user selects a color.
The ColorPicker is a singleton, it needs to be instantiated only once. No parameter is needed. To display the color picker, call the 'show' method.
To be informed of a color pick, the application must listen to the '/colorpicker/events/pickcolor' event.
- Defined in: colorpicker.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Compatibility list | Supported platforms / browsers |
|---|---|
|
iOS2, iOS3, iOS4, iOS5, iOS6, Android 1.1, Android 1.5, Android 2.1, Android 2.2, Android 2.3, Android 3.0, Android 3.1, Android 4.0, BlackBerry 6, BlackBerry 7, Bada 1.0, Windows Phone 7.5, Windows Phone 8
|
Method Summary
Class Detail
wink.ui.xy.ColorPicker()
colorpicker = new wink.ui.xy.ColorPicker(); colorpicker.show();
- See:
- Test page
Field Detail
{integer}
uId
Unique identifier
Method Detail
-
hide()Hide the ColorPicker
-
show()Display the ColorPicker
-
updatePosition()Update the position of the ColorPicker
Event Detail
/colorpicker/events/pickcolor
The user clicked on a color
- Parameters:
- {object} param
- The parameters object
- {string} param.color
- The color currently selected