search

goog.ui.ToggleButton

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

A toggle button, with checkbox-like semantics. Rendered using goog.ui.CustomButtonRenderer by default, though any goog.ui.ButtonRenderer would work.

new ToggleButton( content, 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_renderer(goog.ui.ButtonRenderer|null)=

Renderer used to render or decorate the button; defaults to goog.ui.CustomButtonRenderer.

opt_domHelper(goog.dom.DomHelper|null)=

Optional DOM helper, used for document interaction.

Instance Methods

Instance Properties