packages/ecl/components/ecl-modal/ecl-modal-close.directive.ts
Directive that allows an element to close the modal on click.
Can emit a result and indicate the role (e.g., confirm, cancel).
| Selector | [eclModalClose] |
Methods |
Inputs |
Outputs |
HostListeners |
| eclModalResult |
Type : T
|
Default value : undefined, { alias: 'eclModalClose' }
|
|
Optional result value to emit when modal is closed. |
| eclModalRole |
Type : 'confirm' | 'cancel' | string
|
|
Optional role associated with the modal close action (e.g., confirm, cancel). |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| modalClose |
|
Event emitted when the element is clicked and the modal should be closed. |
| click |
Arguments : '$event'
|
|
Handles click events and emits the |
| onClick | ||||||
onClick(evt: MouseEvent)
|
||||||
Decorators :
@HostListener('click', ['$event'])
|
||||||
|
Handles click events and emits the
Parameters :
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|