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