2.0.2 • Published 6 years ago
status-table v2.0.2
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.
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago