packages/ecl/components/ecl-modal/ecl-modal.component.ts
OnChanges
AfterContentInit
OnDestroy
| selector | dialog[eclModal] |
| imports |
A11yModule
|
| templateUrl | ./ecl-modal.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
| isOpen |
Type : boolean | any
|
|
Controls whether the modal is open. Can be set to any truthy value to open the modal. |
| size |
Type : "s" | "m" | "l" | "full" | string
|
Default value : 'l'
|
|
Defines the size of the modal. Possible values:
|
| 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 : EventEmitter
|
|
Emits when the modal is closed. Carries an instance of |
| modalOpen |
Type : EventEmitter
|
|
Emits when the modal is opened. Carries an instance of |
| attr.open |
Type : boolean
|
|
Binds the Used by the native |
| 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 If the event is not prevented, the modal will be hidden.
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 If the event is not prevented, the modal will be displayed.
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| eclModalCloseComponents |
Type : QueryList<EclModalCloseDirective<T>>
|
Decorators :
@ContentChildren(undefined, {descendants: true})
|
|
All close directives projected inside the modal. |
| eclModalHeader |
Type : EclModalHeaderComponent<T>
|
Decorators :
@ContentChild(undefined)
|
|
Header component projected into the modal. |
| isOpen | ||||||
getisOpen()
|
||||||
|
Returns the open state of the modal.
Returns :
boolean | null
|
||||||
setisOpen(value: boolean | any)
|
||||||
|
Controls whether the modal is open. Can be set to any truthy value to open the modal.
Parameters :
Returns :
void
|
| isModalOpened |
getisModalOpened()
|
|
Binds the Used by the native
Returns :
boolean
|
| cssClasses |
getcssClasses()
|
|
Applies base and variant CSS classes to the modal element.
Returns :
string
|