Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
name: 'description',
title: 'Description',
renderer: EntityTableColumnRenderer.HTML
},
{
name: 'action',
title: '',
valueAccessor: (entity: object) => {
return [{
icon: 'home',
color: 'warn',
click: (row) => { console.log(row); }
}] as EntityTableButton[];
},
renderer: EntityTableColumnRenderer.ButtonGroup
}
]
};
constructor(private languageService: LanguageService) {}
ngOnInit() {
this.store.load([
{ id: '2', name: 'Name 2', description: '<b>Description 2</b>' },
{ id: '1', name: 'Name 1', description: '<b>Description 1</b>' },
{ id: '3', name: 'Name 3', description: '<b>Description 3</b>' }
]);
}
ngOnDestroy() {
this.store.destroy();