Class type Goog.​Ui.​hsvPalette

class type hsvPalette = object..end

Inherits


method canDecorate : 
'a. (#Dom_html.element as 'a) Js.t -> bool Js.t Js.meth

HsvPalettes cannot be used to decorate pre-existing html, since the structure they build is fairly complicated. Returns Returns always false.

method createDom : unit Js.meth
method disposeInternal : unit Js.meth
method enterDocument : unit Js.meth

Renders the color picker inside the provided element. This will override the current content of the element.

method getAlpha : float Js.t Js.meth

Alpha transparency of the currently selected color, in 0, 1. For the HSV palette this always returns 1. The HSVA palette overrides this method. Returns The current alpha value.

method getColor : Js.js_string Js.t Js.meth

Gets the color that is currently selected in this color picker. Returns The string of the selected color.

method setColor : Js.js_string Js.t -> unit Js.meth

Sets which color is selected and update the .

method setHsv : float Js.opt -> float Js.opt -> int Js.opt -> unit Js.meth

Alters the hue, saturation, and/or value of the currently selected color and updates the .