packages/ecl/components/ecl-form-label/ecl-form-label.component.ts
The EclFormLabelComponent is used to render a form label with optional or required state.
It supports ECL design system styling and applies relevant classes or attributes based on the input flags.
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | [eclFormLabel] |
| imports |
TranslateModule
|
| templateUrl | ./ecl-form-label.component.html |
Properties |
Methods |
Inputs |
HostBindings |
| isOptional |
Type : boolean
|
Default value : false
|
|
Marks the form label as optional.
When Defaults to |
| isRequired |
Type : boolean
|
Default value : false
|
|
Marks the form label as required.
When Defaults to |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| class.ecl-form-label |
Type : boolean
|
Default value : true
|
|
Applies the base ECL class for form labels to the host element. |
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| hasClass |
Type : unknown
|
Default value : true
|
Decorators :
@HostBinding('class.ecl-form-label')
|
|
Applies the base ECL class for form labels to the host element. |