Class type Goog.​Ui.​toolbarColorMenuButtonRenderer

class type [colorMenuButton]toolbarColorMenuButtonRenderer = object..end

Inherits


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-toolbar-menu-button-caption"> <div class="goog-color-menu-button-indicator"> Contents... </div> </div> Returns Caption element.

method setValue : 
'a. (#Dom_html.element as 'a) 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.

method initializeDom : colorMenuButton 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.