MDCTab class

A tab governs the visibility of one group of content.

Javascript: mdc.tab.MDCTab.

Inheritance

Constructors

MDCTab(Element root, [MDCFoundation? foundation, dynamic args])

Properties

active bool
no setter
foundation MDCFoundation
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
js → TabComponent
The underlying Javascript component.
no setteroverride
root Element
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate([dynamic previousIndicatorClientRect]) → void
previousIndicatorClientRect is a DOMRect. See also computeIndicatorClientRect().
computeDimensions() MDCTabDimensions
computeIndicatorClientRect() → dynamic
Returns a DOMRect.
deactivate() → void
destroy() → void
Releases resources and removes any listeners.
inherited
emit(String type, dynamic data, [bool shouldBubble = false]) → void
inherited
focus() → void
listen(String type, EventListener handler, {bool captureThis = false}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unlisten(String type, EventListener handler, {bool captureThis = false}) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

attachTo(Element root) MDCTab

Constants

interactedEvent → const String
Emitted when the Tab is interacted with, regardless of its active state. Used by parent components to know which Tab to activate.