colorpalette.js
No description.

File Location

/goog/ui/colorpalette.js

Classes

goog.ui.ColorPalette
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.

Public Protected Private

Global Functions

goog.ui.ColorPalette.parseColor_(color) ?string
Takes a string, attempts to parse it as a color spec, and returns a normalized hex color spec if successful (null otherwise).
Arguments:
color : ?string
String possibly containing a color spec; may be null.
Returns: ?string  Normalized hex color spec, or null if the argument can't be parsed as a color.
code »

Directory ui

File Reference