Home

# Class goog.ui.TabBarRenderer

Default renderer for {@link goog.ui.TabBar}s, based on the {@code TabPane} code. The tab bar's DOM structure is determined by its orientation and location relative to tab contents. For example, a horizontal tab bar located above tab contents looks like this:

    ...(tabs here)...

extends goog.ui.ContainerRenderer

Instance Method Summary
| `createClassByLocationMap_()` Creates the location-to-class lookup table.
| `createLocationByClassMap_()` Creates the class-to-location lookup table, used during decoration.
| `getAriaRole() ⇒ (string|undefined)` Returns the ARIA role to be applied to the tab bar element. See http://wiki/Main/ARIA for more info.
| `getClassNames(?goog.ui.Container container) ⇒ ?Array.<string>` Returns all CSS class names applicable to the tab bar, based on its state. Overrides the superclass implementation by appending the location-specific class name to the list.
| `getCssClass() ⇒ string` Returns the CSS class name to be applied to the root element of all tab bars rendered or decorated using this renderer.
| `setStateFromClassName(?goog.ui.Container container, string className, string baseClass)` Sets the tab bar's state based on the given CSS class name, encountered during decoration. Overrides the superclass implementation by recognizing class names representing tab bar orientation and location.