search

goog.ui.Select

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

A selection control. Extends goog.ui.MenuButton by composing a menu with a selection model, and automatically updating the button's caption based on the current selection.

Select fires the following events: CHANGE - after selection changes.

new Select( opt_caption, opt_menu, opt_renderer, opt_domHelper, opt_menuRenderer )

Parameters
opt_caption(string|Node|Array<Node>|NodeList<Node>|null)=

Default caption or existing DOM structure to display as the button's caption when nothing is selected. Defaults to no caption.

opt_menu(goog.ui.Menu|null)=

Menu containing selection options.

opt_renderer(goog.ui.ButtonRenderer|null)=

Renderer used to render or decorate the control; defaults to goog.ui.MenuButtonRenderer.

opt_domHelper(goog.dom.DomHelper|null)=

Optional DOM helper, used for document interaction.

opt_menuRenderergoog.ui.MenuRenderer=

Renderer used to render or decorate the menu; defaults to goog.ui.MenuRenderer.

Instance Methods

Instance Properties