List with tags
... import {ColumnConfig, ViewType, CarbonListItem} from '@valtimo/components'; ... // For custom templates, the fields need to be set after the view was initialized export class SampleComponent { ... public fields: Array<ColumnConfig> = [ { viewType: ViewType.TAGS, key: 'title', label: 'sample.translation.title', }, { viewType: ViewType.TAGS, template: this.sampleTemplate, key: 'tags', label: 'Tags', }, ]; // public items: Array<CarbonListItem> = [ { title: 'Title 1', tags: [ { content: 'tag1', type: 'purple' }, { content: 'tag2', type: 'red' }, ] } ] ... }<valtimo-carbon-list [items]="items" [fields]="fields" ></valtimo-carbon-list> ...

Last updated