search

goog.ui.CustomButton

Provided By
Extends
All Implemented Interfaces

A custom button control. Identical to goog.ui.Button, except it defaults its renderer to goog.ui.CustomButtonRenderer. One could just as easily pass goog.ui.CustomButtonRenderer.getInstance() to the goog.ui.Button constructor and get the same result. Provided for convenience.

new CustomButton( 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)=

Optional 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