A node.js module that changes the row's color when value is true or false
npm install status-table --save
import { StatusTableModule } from 'status-table';
imports: [
StatusTableModule
],
exports: [
StatusTableModule
]
import { StatusTableComponent } from 'status-table';
e.g:
In ng2-smart-table settings
columns: {
active: {
title: 'Status',
filter: false,
editable: false,
type: 'custom',
renderComponent: StatusTableComponent,
}
In the table it would look like.
Green for Active. Red for Inactive.