Skip to content
@ng-doc/ui-kit / Class

NgDocFocusControlComponent

Surrounds its content with two focus traps. Tabbing out of the content moves the focus to the element before or after focusHost in the document, instead of leaving it on the traps.

Decorators
@Component
Selectors
ng-doc-focus-control
DeclarationTypeScript
@Component({ … })
export class NgDocFocusControlComponent { … }

Members

Properties

1
focusHost: InputSignal<HTMLElement | null>
readonly input()

Element from which the focus moves on when it leaves the content.

Methods

2
(): void

Focuses the focusable element after focusHost.

(): void

Focuses the focusable element before focusHost.

Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-focus-control
Scope
@ng-doc/ui-kit
Edit this page