search

goog.ui.Zippy

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

Zippy widget. Expandable/collapsible container, clicking the header toggles the visibility of the content.

new Zippy( header, opt_content, opt_expanded, opt_expandedHeader, opt_domHelper, opt_role )

Parameters
header(Element|string|null)

Header element, either element reference, string id or null if no header exists.

opt_content(Element|string|function(): (Element|null)|null)=

Content element (if any), either element reference or string id. If skipped, the caller should handle the TOGGLE event in its own way. If a function is passed, then if will be called to create the content element the first time the zippy is expanded.

opt_expandedboolean=

Initial expanded/visibility state. If undefined, attempts to infer the state from the DOM. Setting visibility using one of the standard Soy templates guarantees correct inference.

opt_expandedHeader(Element|string|null)=

Element to use as the header when the zippy is expanded.

opt_domHelper(goog.dom.DomHelper|null)=

An optional DOM helper.

opt_rolegoog.a11y.aria.Role=

ARIA role, default TAB.

Instance Methods

Instance Properties

Enumerations