packages/ecl/components/ecl-tag/ecl-tag.component.ts
| selector | ecl-tag, [eclTag] |
| imports |
EUI_ECL_ICON
TitleCasePipe
|
| templateUrl | ./ecl-tag.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
constructor()
|
| isWrapped |
Type : boolean
|
Default value : true
|
|
Whether the tag content should be allowed to wrap onto multiple lines.
Set to false to force single-line display (adds |
| variant |
Type : unknown
|
|
Defines the variant of the tag. Currently only 'removable' is supported. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| remove |
Type : EventEmitter
|
|
Event emitted when the tag is removed.
Can be prevented by calling |
| class |
Type : string
|
| style.display |
Type : string | null
|
| onRemoveClick |
onRemoveClick()
|
|
Called when the tag’s remove button is clicked (or enter key pressed).
Emits the
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| isVisible |
Type : unknown
|
Default value : true
|
| title |
Type : string
|
Default value : 'dismiss'
|
| isHidden |
getisHidden()
|
| cssClasses |
getcssClasses()
|
| isRemovable |
getisRemovable()
|
|
Whether the tag is removable (based on the
Returns :
boolean
|