search

goog.ui.Option

Provided By
Extends
All Implemented Interfaces

Class representing a menu option. This is just a convenience class that extends goog.ui.MenuItem by making it selectable.

new Option( content, opt_model, opt_domHelper )

Parameters
content(string|Node|Array<Node>|NodeList<Node>|null)

Text caption or DOM structure to display as the content of the item (use to add icons or styling to menus).

opt_model*=

Data/model associated with the menu item.

opt_domHelper(goog.dom.DomHelper|null)=

Optional DOM helper used for document interactions.

Instance Methods

Instance Properties