@revolist/revogrid-column-date
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

revogrid-column-date

Custom column type for RevoGrid component based on duetds-date-picker library.

Installation

npm i @revolist/revogrid-column-date

How to use

  • Import Select Column type;
  • Specify table data;
  • Per column specify column type;
  • Register your column type;
// do import
import Plugin from "@revolist/revogrid-column-date";

const columns = [{ prop: 'name', columnType: 'date' }];
const rows = [{ name: '2020-08-24' }, { name: '2022-08-24' }];

// register column type
const columnTypes = { 'date': new Plugin() };

// apply data to grid per your framework approach
<revo-grid source={rows} columns={columns} columnTypes={columnTypes}/>

/@revolist/revogrid-column-date/

    Package Sidebar

    Install

    npm i @revolist/revogrid-column-date

    Weekly Downloads

    955

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    28.4 kB

    Total Files

    23

    Last publish

    Collaborators

    • kumakint