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>Directive Metadata
Section titled “Directive Metadata”Selector: [yuvLightDismiss]
Standalone: Yes
Outputs
Section titled “Outputs”yuvLightDismiss
Section titled “yuvLightDismiss”Type: EventEmitter
Methods
Section titled “Methods”onKeydownHandler
Section titled “onKeydownHandler”onKeydownHandler(event: KeyboardEvent): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| event | KeyboardEvent |
onMousedown
Section titled “onMousedown”onMousedown(event: MouseEvent): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| event | MouseEvent |