search

goog.ui.ColorMenuButton

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

A color menu button control. Extends goog.ui.MenuButton by adding an API for getting and setting the currently selected color from a menu of color palettes.

new ColorMenuButton( content, opt_menu, opt_renderer, opt_domHelper )

Parameters
content(string|Node|Array<Node>|NodeList<Node>|null)

Text caption or existing DOM structure to display as the button's caption.

opt_menu(goog.ui.Menu|null)=

Menu to render under the button when clicked; should contain at least one goog.ui.ColorPalette if present.

opt_renderer(goog.ui.MenuButtonRenderer|null)=

Button renderer; defaults to goog.ui.ColorMenuButtonRenderer.

opt_domHelper(goog.dom.DomHelper|null)=

Optional DOM helper, used for document interaction.

Instance Methods

Instance Properties

Static Functions

Static Properties