MaterialTabComponent class
A Material-styled card, which is shown or hidden as part of a MaterialTabPanelComponent.
The material-tab
component sets the button's label text via the label
property. Tab contents can be lazily instantiated by using the
*deferredContent
template directive.
- Inheritance
-
- Object
- RootFocusable
- MaterialTabComponent
- Implemented types
- Annotations
-
- @Component(selector: 'material-tab', providers: [ExistingProvider(Tab, MaterialTabComponent), ExistingProvider(DeferredContentAware, MaterialTabComponent)], template: ''' <div class="tab-content" *ngIf="active" #content> <ng-content></ng-content> </div>''', styleUrls: ['material_tab.scss.css'], directives: [NgIf])
Constructors
- MaterialTabComponent(HtmlElement element, @Optional() IdGenerator? idGenerator)
Properties
- active → bool
-
Whether the tab is active.
no setter
- content ← DivElement?
-
no getter
-
contentVisible
→ Stream<
bool> -
Component publishes to this stream to control the visibility of contents.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- label ↔ String?
-
The label for this tab.
getter/setter pairoverride-getter
- panelId → String
-
HTML ID for the panel.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabId → String
-
HTML ID for the tab.
no setteroverride
Methods
-
activate(
) → void -
Sets this tab as active.
override
-
deactivate(
) → void -
Sets this tab as inactive.
override
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
focus(
) → void -
Item/component focuses itself
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited