Skip to content

LightDismissDirective

directive

Directive for applying light dismiss actions. Adding this directive will trigger the given function when the user clicks outside the component or hits escape.

Example :

<div class="notifications" (yuvLightDismiss)="close()">
...
</div>

Selector: [yuvLightDismiss]

Standalone: Yes

Type: EventEmitter

onKeydownHandler(event: KeyboardEvent): void
NameTypeDescription
eventKeyboardEvent
onMousedown(event: MouseEvent): void
NameTypeDescription
eventMouseEvent