Class type Goog.​Ui.​colorMenuButtonRenderer

class type [#button]colorMenuButtonRenderer = object..end


method createCaption : 
controlContent ->
Goog.Gdom.domHelper Js.t -> Dom_html.element Js.t Js.meth

Overrides the superclass implementation by wrapping the caption text or DOM structure in a color indicator element. Creates the following DOM structure: <div class="goog-inline-block goog-menu-button-caption"> <div class="goog-color-menu-button-indicator"> Contents... </div> </div> The 'goog-color-menu-button-indicator' style should be defined to have a bottom border of nonzero width and a default color that blends into its background. Returns Caption element.

method initializeDom : (#button as 'a) Js.t -> unit Js.meth

Initializes the button's DOM when it enters the document. Overrides the superclass implementation by making sure the button's color indicator is initialized.

method setValue : 
'b. (#Dom_html.element as 'b) Js.t -> Js.js_string Js.t -> unit Js.meth

Takes a color menu button control's root element and a value object (which is assumed to be a color), and updates the button's DOM to reflect the new color. Overrides goog.ui.ButtonRenderer#setValue.