Skip to content

Gaabiriel/status-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A node.js component that changes the row's color when value is true or false

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published