Class Exanpe.ColorPicker
Represents a Color Picker. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.ColorPicker(id, yuipanel, yuicolor)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
id of the instance
|
|
yui object of the color picker
|
|
yui object of the panel displaying the color picker
|
Method Attributes | Method Name and Description |
---|---|
hide()
Hide the color picker
|
|
reset()
Reset the color picker content
|
|
setValue(rgbValue)
Set a value for the color picker
|
|
show()
Show the color picker
|
Class Detail
Exanpe.ColorPicker(id, yuipanel, yuicolor)
Constructor
- Parameters:
- {String} id
- the id of the slide show
- {YUI} yuipanel
- the YUIPanel displaying the color picker object wrapped
- {YUI} yuicolor
- the YUI ColorPicker object wrapped
Field Detail
id
id of the instance
yui
yui object of the color picker
yuipanel
yui object of the panel displaying the color picker
Method Detail
hide()
Hide the color picker
reset()
Reset the color picker content
setValue(rgbValue)
Set a value for the color picker
- Parameters:
- {Array} rgbValue
- the value to set as an array [int, int, int] for [R, G, B]
show()
Show the color picker