packages/ecl/components/ecl-blockquote/ecl-blockquote.component.ts
Blockquote component based on the ECL design system. Displays quoted text with an optional author. Supports language awareness through the I18n service.
| changeDetection | ChangeDetectionStrategy.OnPush |
| encapsulation | ViewEncapsulation.None |
| selector | [eclBlockquote] |
| imports |
CommonModule
|
| templateUrl | ./ecl-blockquote.component.html |
Properties |
Methods |
Inputs |
HostBindings |
Accessors |
| author |
Type : string
|
|
Author name associated with the quoted content. If provided, it will be displayed below the blockquote. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| class |
Type : string
|
|
Applies the CSS classes for the blockquote element. |
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| languageCode |
Type : string
|
Default value : 'en'
|
|
Current active language code, retrieved from the I18n service. |
| cssClasses |
getcssClasses()
|
|
Applies the CSS classes for the blockquote element.
Returns :
string
|
| hasAuthor |
gethasAuthor()
|
|
Checks if an author is provided.
Returns :
boolean
|