packages/ecl/components/ecl-file/ecl-file-items/ecl-file-items.component.ts
Component representing a container for file item translations within an ECL File component. It can be expanded or collapsed, and emits an event when toggled.
| selector | ecl-file-items |
| imports |
EUI_ECL_BUTTON
EUI_ECL_ICON
TranslateModule
|
| templateUrl | ./ecl-file-items.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
| isExpanded |
Type : boolean
|
Default value : false
|
|
Whether the list is initially expanded. |
| label |
Type : string
|
|
Label displayed above the translations list. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| toggle |
Type : EventEmitter
|
|
Emits a toggle event when the translations list is expanded or collapsed. Consumers can call |
| class |
Type : string
|
|
CSS classes applied to the host element. |
| getItemsCount |
getItemsCount()
|
|
Returns the number of translation items excluding description entries.
Returns :
number
|
| onToggleClick | ||||||
onToggleClick(evt: MouseEvent)
|
||||||
|
Toggles the expansion state of the translation list.
Emits
Parameters :
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| items |
Type : QueryList<EclFileItemComponent>
|
Decorators :
@ContentChildren(EclFileItemComponent)
|
|
Content-projected list of translation items (excluding description blocks). |
| cssClasses |
getcssClasses()
|
|
CSS classes applied to the host element.
Returns :
string
|