FixedMaterialTabStripComponent class

A tab strip component with Tab-styled buttons and active tab indicator.

This is the Fixed tab strip from the material spec which has equal sized tab buttons, and no scrolling.

Note: To achieve a quality user experience, users of the tab strip must set focus to newly revealed content so that 1) the tab does not retain the focus style, and 2) screen-readers can reckon what has changed.

Annotations
  • @Component(selector: 'material-tab-strip', directives: [FocusListDirective, FocusItemDirective, TabButtonComponent, NgFor], templateUrl: 'fixed_material_tab_strip.html', styleUrls: ['fixed_material_tab_strip.scss.css'], changeDetection: ChangeDetectionStrategy.onPush)

Constructors

FixedMaterialTabStripComponent(ChangeDetectorRef _changeDetector, @Optional() @Inject(rtlToken) bool? isRtl, NgZone _ngZone)

Properties

activeTabIndex int
Index of the active panel, 0-based.
getter/setter pair
activeTabIndexChange Stream<int>
Stream of updates to activeTabIndex, published after the tabChange event has fired.
no setter
beforeTabChange Stream<TabChangeEvent>
Stream of TabChangeEvent instances, published before the tab has changed.
no setter
focusController FocusListDirective?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabChange Stream<TabChangeEvent>
Stream of TabChangeEvent instances, published when the tab has changed.
no setter
tabIds List<String>
List of tab button ids.
getter/setter pair
tabIndicatorTransform String?
no setter
tabLabels List<String>
List of tab button labels.
getter/setter pair

Methods

activeStr(int index) String
focusOutHandler(FocusEvent e) → void
ngAfterViewInit() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
switchTo(int index) → void
tabId(int index) String
toString() String
A string representation of this object.
inherited

Operators

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

Constants

hostClass → const String