Skip to content

AutofocusDelayedDirective

directive

Directive putting delayed focus on an element. If no delay is set, the focus will be set immediately.

You have to ensure that the element is focusable when adding this directive to it.

Selector: [yuvAutofocusDelayed]

Standalone: Yes

Implements: AfterViewInit

Type: number | string

Default Value: 0

Sets the delay in milliseconds. If no delay is set, the focus will be set immediately.