ActiveItemDirective class

Directive for elements able to be activated through mouse or keyboard, like list elements.

Will scroll the item into view as long as it was made active when mouse is not hovering over it.

Annotations
  • @Directive(selector: '[itemActive]')

Constructors

ActiveItemDirective(HtmlElement _element, DomService _domService, @Optional() Modal? _modal, @Optional() PopupRef? _popupRef)

Properties

active bool
Whether the element is active.
no setter
hashCode int
The hash code for this object.
no setterinherited
itemActive bool
Marks item as active from keyboard selection.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ngAfterViewInit() → void
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMouseEnter() → void
onMouseLeave() → void
toString() String
A string representation of this object.
inherited

Operators

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