File

packages/ecl/components/ecl-file/ecl-file-item/ecl-file-item.component.ts

Description

Component representing a single file translation or descriptive item inside the main ECL File component.

Extends

ECLBaseDirective

Metadata

Index

Properties
Methods
Inputs
HostBindings
Accessors

Inputs

eclTitle
Type : string

Title text of the file item.

isDescription
Type : boolean
Default value : false

Indicates whether the item is a description block rather than a translation. Adds the ecl-file__translation-description class when true.

label
Type : string

Language label displayed next to the title (e.g., "FR", "EN").

langDetail
Type : string

Supplementary language detail displayed below the language label.

meta
Type : string

Additional metadata for the item (e.g., file size, type).

titleId
Type : string

ID applied to the title element for accessibility.

class
Type : string
e2eAttr
Type : any
tabindex
Type : number

HostBindings

attr.role
Type : string
Default value : 'listitem'

ARIA role attribute set to 'listitem' for accessibility.

class
Type : string

Host CSS classes for the item, based on the content and state.

Methods

getCssClasses
getCssClasses(rootClass: string)
Parameters :
Name Type Optional
rootClass string No
Returns : string

Properties

role
Type : string
Default value : 'listitem'
Decorators :
@HostBinding('attr.role')

ARIA role attribute set to 'listitem' for accessibility.

Accessors

cssClasses
getcssClasses()

Host CSS classes for the item, based on the content and state.

Returns : string
isThumbnail
getisThumbnail()

Indicates whether the parent EclFileComponent has a thumbnail image.

Returns : boolean

results matching ""

    No results matching ""