packages/ecl/components/ecl-list-illustration/ecl-list-illustration.component.ts
Component representing a list using ECL illustration styles.
Supports zebra styling, responsive horizontal layout, and font size options.
| host | { |
| selector | ecl-list-illustration |
| templateUrl | ./ecl-list-illustration.component.html |
Properties |
Methods |
Inputs |
HostBindings |
Accessors |
constructor()
|
| fontSize |
Type : "m" | "l"
|
Default value : 'l'
|
|
Font size for list content. Possible values:
|
| hasDividers |
Type : boolean
|
Default value : false
|
|
If this is an icon-list, it can have dividers between each item. |
| isCentered |
Type : boolean
|
Default value : false
|
|
If content should be centered |
| isIconInline |
Type : boolean
|
Default value : false
|
|
If the icon should be on the same row as title - for list with icons |
| isZebra |
Type : boolean
|
Default value : false
|
|
Enables zebra style (alternating background colors for list items). |
| variant |
Type : "icon-list" | "number-list" | null
|
Default value : null
|
|
Two variants available: icon-list and number-list. |
| counterStart |
Type : number | null
|
Default value : null
|
|
If we have a number-list, the user can set the start of the counter. |
| horizontalColumns |
Default value : 0, { transform: numberAttribute }
|
|
Number of horizontal columns. If greater than |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| attr.role |
Type : string
|
Default value : 'list'
|
|
Applies ARIA role for list elements. |
| class |
Type : string
|
|
Applies the appropriate ECL CSS classes to the host element. |
| style.--ecl-list-illustration-counter-start |
Type : string
|
Default value : ''
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| counterStartStyle |
Type : string
|
Default value : ''
|
Decorators :
@HostBinding('style.--ecl-list-illustration-counter-start')
|
| eclIllustrationItems |
Type : QueryList<EclListIllustrationItemComponent>
|
Decorators :
@ContentChildren(undefined)
|
| role |
Type : string
|
Default value : 'list'
|
Decorators :
@HostBinding('attr.role')
|
|
Applies ARIA role for list elements. |
| cssClasses |
getcssClasses()
|
|
Applies the appropriate ECL CSS classes to the host element.
Returns :
string
|