@stratio/egeo
Version:
43 lines (30 loc) • 1.16 kB
Markdown
The tag component allows to display small texts.
| Property | Type | Req | Description | Default |
| --------- | --------- | ----- | ------------------------------------------------------ | ------- |
| tag | StTagItem | False | Item that contains the tag info | |
| removable | Boolean | False | Boolean to display or not the cross icon to remove tag | |
| clickable | Boolean | False | Boolean to set tag as clicklable or not | true |
| Property | Type | Description |
| -------- | --------- | --------------------------------------- |
| remove | StTagItem | Even emitted when cross icon is clicked |
| click | StTagItem | Event emitted when tag is clicked |
```html
<st-tag [tag]="simpleTag"
class="small"
[]="true"></st-tag>
```
*StTagItem* (StTagItem)
```typescript
export class StTagItem {
id: any;
text: string;
icon ? : string;
bubble ? : string;
[]: any;
}
```