Class type Goog.Ui.colorPicker
class type colorPicker = object..end
Inherits
method addColor : colors -> unit Js.meth
Sets the array of colors to be displayed by the color picker.
method canDecorate :
'a. (#Dom_html.element as 'a) Js.t -> bool Js.t Js.meth
ColorPickers cannot be used to decorate pre-existing html, since the structure they build is fairly complicated.
method enterDocument : unit Js.meth
Renders the color picker inside the provided element. This will override the current content of the element.
method focus : unit Js.meth
Sets the focus to the color picker's palette.
method getColors : colors Js.meth
Gets the array of colors displayed by the color picker. Modifying this array will lead to unexpected behavior.
method getSelectedColor : Js.js_string Js.t Js.meth
Gets the color that is currently selected in this color picker.
method getSelectedIndex : int Js.meth
The index of the color selected.
method getSize : Goog.Math.size Js.t Js.opt Js.meth
Gets the number of columns displayed.
method isFocusable : bool Js.t Js.meth
Returns true if the component is focusable, false otherwise. The default is true. Focusable components always have a tab index and allocate a key handler to handle keyboard events while focused.
method setColors : colors -> unit Js.meth
Sets the array of colors to be displayed by the color picker.
method setColumnCount : int -> unit Js.meth
Sets the number of columns. Will throw an error after the picker has been rendered.
method setFocusable : bool Js.t -> unit Js.meth
Sets whether the component is focusable. The default is true. Focusable components always have a tab index and allocate a key handler to handle keyboard events while focused.
method setSelectedColor : color -> unit Js.meth
method setSelectedIndex : int -> unit Js.meth
Sets which color is selected. A value that is out-of-range means that no color is selected.
method setSize : int -> unit Js.meth
Sets the size of the palette. Will throw an error after the picker has been rendered.
