status-table
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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',
        filterfalse,
        editablefalse,
        type'custom',
        renderComponentStatusTableComponent,
      }
 
 

Output

In the table it would look like.

screenshot_45

Green for Active. Red for Inactive.

Package Sidebar

Install

npm i status-table

Weekly Downloads

4

Version

2.0.2

License

ISC

Last publish

Collaborators

  • gaabiriel