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

1.0.5 • Public • Published

revogrid-number

Number column type for RevoGrid system.

Column type depends on numbro library. Use any format you love to assign number format for your grid. For example:

import NumberColumnType from '@revolist/revogrid-number';
const columnTypes = {
    'numeric': new NumberColumnType({thousandSeparated: true, mantissa: 5})
};
const columns = [
    {
        prop: 'Num',
        name: 'My number',
        columnType: 'numeric'
    },
    {
        prop: 'Num2',
        name: 'My number2',
        columnType: 'numeric'
    }
];
const rows = [{
    'Num': 132322332,
    'Num2': 32322
}];

const grid = document.querySelector('revo-grid');
grid.columnTypes = columnTypes;
grid.source = rows;
grid.columns = columns;

Readme

Keywords

none

Package Sidebar

Install

npm i @revolist/revogrid-number

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

8.19 kB

Total Files

10

Last publish

Collaborators

  • kumakint