TabButtonComponent class
A specialized button component used only by the tab strip.
- Inheritance
-
- Object
- RootFocusable
- ButtonDirective
- MaterialButtonBase
- TabButtonComponent
- Mixed-in types
- Annotations
-
- @Component(selector: 'tab-button', template: r''' <div class="content"> {{label}} </div> <material-ripple></material-ripple> ''', styleUrls: ['tab_button.scss.css'], changeDetection: ChangeDetectionStrategy.onPush, directives: [MaterialRippleComponent])
Constructors
- TabButtonComponent(Element _nativeElement)
Properties
- ariaRole → String?
-
no setterinherited
- disabled ↔ bool
-
Is the component disabled.
getter/setter pairinherited
- disabledStr → String
-
String value to be passed to aria-disabled.
no setterinherited
- focused → bool
-
Whether button is focused right now.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostClassActive → bool
-
no setter
- hostClassFocus → bool
-
no setter
- hostDisabled → String?
-
no setter
- hostTabIndex → String?
-
no setterinherited
- isActive ↔ bool
-
Whether the tab represented by this button is currently active.
getter/setter pair
- isMouseDown → bool
-
Whether the mouse is currently pressed on the button.
no setterinherited
- label ↔ String?
-
The tab label.
getter/setter pairinherited
- nativeElement → Element
-
The host element.
no setteroverride
- offsetLeft → int
-
Returns offsetLeft of the host element .
no setterinherited
- offsetWidth → int
-
Returns offsetWidth of the host element .
no setterinherited
- raised ↔ bool
-
getter/setter pairinherited
- role ↔ String?
-
Role of this component used for a11y.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabbable ↔ bool
-
Is the component tabbable.
getter/setter pairinherited
- tabIndex → String?
-
no setterinherited
- tabindex ← String?
-
The tab index of the component.
no getterinherited
- textWidth → int
-
The width of the text without any constraints as if no width was set.
no setterinherited
-
trigger
→ Stream<
UIEvent> -
Fired when the button is activated via click, tap, or key press.
no setterinherited
- visualFocus → bool
-
Whether button appears focused right now.
no setterinherited
- width ↔ String
-
The width of the host element .
getter/setter pairinherited
- zElevation → int
-
The elevation the material-shadow component should show.
no setterinherited
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
focus(
) → void -
Item/component focuses itself
inherited
-
focusedStateChanged(
) → void -
Overridable method for subclasses that implement push change detection.
inherited
-
handleClick(
MouseEvent mouseEvent) → void -
Triggers if not disabled.
inherited
-
handleKeyPress(
KeyboardEvent keyboardEvent) → void -
Triggers on enter and space if not disabled.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBlur(
UIEvent event) → void -
Triggered on blur.
inherited
-
onFocus(
UIEvent event) → void -
Triggered on focus.
inherited
-
onMouseDown(
dynamic _) → void -
Triggered on a mouse press.
inherited
-
onMouseUp(
dynamic _) → void -
Triggered on a mouse release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryClearWidth(
) → void -
Clear width if it's been set and the label has changed.
inherited
-
updateTabIndex(
) → void -
Use this method if you want to manually compute and cache the tab index.
inherited
-
updateTextWidth(
) → void -
Updates the width of the label.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited