colormenubuttonrenderer.js
No description.

File Location

/goog/ui/colormenubuttonrenderer.js

Classes

goog.ui.ColorMenuButtonRenderer
Renderer for goog.ui.ColorMenuButtons.

Public Protected Private

Global Functions

goog.ui.ColorMenuButtonRenderer.getInstance()
No description.
code »
goog.ui.ColorMenuButtonRenderer.setCaptionValue(captionvalue)
Takes a control's content element and a value object (which is assumed to be a color), and updates its DOM to reflect the new color.
Arguments:
caption : Element
A content element of a control.
value : *
New value; assumed to be a color spec string.
code »
goog.ui.ColorMenuButtonRenderer.wrapCaption(contentdom) Element
Wrap a caption in a div with the color-menu-button-indicator CSS class.
Arguments:
content : goog.ui.ControlContent
Text caption or DOM structure.
dom : goog.dom.DomHelper
DOM helper, used for document interaction.
Returns: Element  Caption element.
code »

Directory ui

File Reference