FocusItemDirective class
FocusItemDirective
, used in conjunction with FocusListDirective,
provides a means to move focus between a list of components (or elements)
by way of keyboard interaction.
- Inheritance
-
- Object
- RootFocusable
- FocusItemDirective
- Implemented types
- Annotations
-
- @Directive(selector: '[focusItem]', providers: [ExistingProvider(FocusableItem, FocusItemDirective)])
Constructors
- FocusItemDirective(HtmlElement element, ChangeDetectorRef _changeDetectorRef, @Attribute('role') String? role)
Properties
-
focusmove
→ Stream<
FocusMoveEvent> -
The item publishes to this stream in order to move focus to another item.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- role → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabbable ← bool
-
Moves focus item into (tabIndex='0') or out of (tabIndex='-1') tab order.
no getteroverride
- tabIndex ↔ String
-
getter/setter pair
Methods
-
dispose(
) → void -
Disposes this disposable and any resources it has open.
inherited
-
focus(
) → void -
Item/component focuses itself
inherited
-
keydown(
KeyboardEvent event) → void -
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