Class type Goog.​Ui.​colorMenuButton

class type colorMenuButton = object..end


method getSelectedColor : Js.js_string Js.t Js.opt Js.meth

Returns the currently selected color (null if none). Returns The selected color.

method handleMenuAction_ : Goog.Events.event Js.t -> unit Js.meth

Handles goog.ui.Component.EventType.ACTION events dispatched by the menu item clicked by the user. Updates the button, calls the superclass implementation to hide the menu, stops the propagation of the event, and dispatches an ACTION event on behalf of the button itself. Overrides goog.ui.MenuButton#handleMenuAction.

method setOpen : bool Js.t -> unit Js.meth

Opens or closes the menu. Overrides goog.ui.MenuButton#setOpen by generating a default color menu on the fly if needed.

method setSelectedColor : Js.js_string Js.t Js.opt -> unit Js.meth

Sets the selected color, or clears the selected color if the argument is null or not any of the available color choices.

method setValue : Js.js_string Js.t Js.opt -> unit Js.meth

Sets the value associated with the color menu button. Overrides goog.ui.Button#setValue by interpreting the value as a color spec string.