search

goog.ui.ColorPalette

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

A color palette is a grid of color swatches that the user can highlight or select via the keyboard or the mouse. The selection state of the palette is controlled by a selection model. When the user makes a selection, the component fires an ACTION event. Event listeners may retrieve the selected color using the #getSelectedColor method.

new ColorPalette( opt_colors, opt_renderer, opt_domHelper )

Parameters
opt_colors(Array<string>|null)=

Array of colors in any valid CSS color format.

opt_renderer(goog.ui.PaletteRenderer|null)=

Renderer used to render or decorate the palette; defaults to goog.ui.PaletteRenderer.

opt_domHelper(goog.dom.DomHelper|null)=

Optional DOM helper, used for document interaction.

Instance Methods

Instance Properties