packages/ecl/components/ecl-modal/ecl-modal-header.component.ts
Header component used within the ECL Modal.
Displays an icon depending on the modal variant, user-defined content, and a close button that emits a close event.
| selector | [eclModalHeader] |
| imports |
EUI_ECL_ICON
TranslateModule
EUI_ECL_BUTTON
|
| templateUrl | ./ecl-modal-header.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
constructor(eclThemeService: EclThemeService)
|
||||||||
|
Constructs the modal header component with injected theme service.
Parameters :
|
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| modalClose |
Type : EventEmitter
|
|
Event emitted when the close button is clicked. Emits an |
| class |
Type : string
|
| onCloseClick |
onCloseClick()
|
|
Handles the click event on the close button. Emits a
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| closeButton |
Type : EclButtonComponent
|
Decorators :
@ViewChild('closeButton')
|
|
Applies the ECL CSS class for modal header container. |
| Public eclThemeService |
Type : EclThemeService
|
|
The theme service used to determine current theme settings.
|
| cssClasses |
getcssClasses()
|