FocusTrapComponent class

Focus trap designed for usage in popups and modals.

After focus enters components it ensures that focus will not leave it.

Annotations
  • @Component(selector: 'focus-trap', templateUrl: 'focus_trap.html', styleUrls: ['focus_trap.scss.css'], directives: [FocusContentWrapper, AutoFocusDirective], changeDetection: ChangeDetectionStrategy.onPush)

Constructors

FocusTrapComponent()

Properties

autoFocus AutoFocusDirective?
no getter
content FocusContentWrapper?
no getter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

focusFirst() → void
focusLast() → 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
toString() String
A string representation of this object.
inherited

Operators

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