packages/ecl/components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.ts
Component for a definition item within an ECL description list. Supports variants (link, inline, taxonomy, tag) and collapsible functionality with maxVisibleItems control.
| selector | [eclDescriptionListDefinition] |
| standalone | true |
| imports |
EUI_ECL_LINK
TranslateModule
|
| templateUrl | ./ecl-description-list-definition.component.html |
Properties |
|
Methods |
Inputs |
HostBindings |
Accessors |
constructor()
|
| variant |
Type : 'link' | 'inline' | 'taxonomy' | 'tag' | null
|
Default value : null
|
|
Visual variant of the definition list item. Options: 'link', 'inline', 'taxonomy', 'tag'. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| class |
Type : string
|
| onShowAllItems | ||||||
onShowAllItems(evt: Event)
|
||||||
|
Handles the "Show all items" link click event. Expands all hidden items and removes the "See all" link from DOM.
Parameters :
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| Readonly domReady |
Type : unknown
|
Default value : signal(false)
|
|
Signal indicating whether the DOM is ready for manipulation. Set to true after first render to ensure projected content exists. |
| maxVisibleItems |
Type : unknown
|
Default value : signal<number | null>(null)
|
|
Maximum number of items to display before showing "See all" link. Controlled by parent EclDescriptionListDirective. |
| cssClasses |
getcssClasses()
|