2.0.2 • Published 8 years ago

status-table v2.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
8 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

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 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