packages/ecl/components/ecl-modal/ecl-modal.component.ts
| selector | dialog[eclModal] |
| imports |
A11yModule
|
| templateUrl | ./ecl-modal.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
constructor()
|
| size |
Type : 's' | 'm' | 'l' | 'full' | string
|
Default value : 'l'
|
|
Defines the size of the modal. Possible values: 's', 'm', 'l' (default), 'full'. |
| variant |
Type : 'information' | 'success' | 'warning' | 'error' | string
|
|
Defines the visual variant of the modal. Possible values: 'information', 'success', 'warning', 'error', or a custom string. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| modalClose |
Type : EclModalCloseEvent<T>
|
|
Emits when the modal is closed.
Carries an instance of |
| modalOpen |
Type : EclModalOpenEvent
|
|
Emits when the modal is opened.
Carries an instance of |
| attr.aria-describedby |
Type : string
|
|
Binds the |
| attr.open |
Type : boolean | null
|
|
Binds the |
| class |
Type : string
|
|
Applies base and variant CSS classes to the modal element. |
| document:keydown.escape |
document:keydown.escape()
|
|
Handles ESC key press to close the modal with |
| closeModal | ||||||
closeModal(result?: EclModalResult<T>)
|
||||||
|
Closes the modal and emits a
Parameters :
Returns :
void
|
| onEscapeKeydownHandler |
onEscapeKeydownHandler()
|
Decorators :
@HostListener('document:keydown.escape')
|
|
Handles ESC key press to close the modal with
Returns :
void
|
| openModal |
openModal()
|
|
Opens the modal and emits a
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| eclModalBody |
Type : unknown
|
Default value : contentChild(EclModalBodyComponent)
|
|
Body component projected into the modal. |
| eclModalBodyId |
Type : string
|
Default value : `ecl-modal-body-${uniqueId()}`
|
|
Unique ID for the modal body.
Used for accessibility ( |
| eclModalCloseComponents |
Type : unknown
|
Default value : contentChildren(forwardRef(() => EclModalCloseDirective), { descendants: true })
|
|
All close directives projected inside the modal. |
| eclModalHeader |
Type : unknown
|
Default value : contentChild(forwardRef(() => EclModalHeaderComponent))
|
|
Header component projected into the modal. |
| isOpen |
Type : unknown
|
Default value : signal(false)
|
|
Controls whether the modal is open. |
| isModalOpened |
getisModalOpened()
|
|
Binds the
Returns :
boolean | null
|
| hostAriaDescribedBy |
gethostAriaDescribedBy()
|
|
Binds the
Returns :
string
|
| cssClasses |
getcssClasses()
|
|
Applies base and variant CSS classes to the modal element.
Returns :
string
|