2.0.2 • Published 7 years ago

status-table v2.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

npm version

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.

screenshot_45

Green for Active. Red for Inactive.

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago