Number
Primitive numeric data type plugin based on numeraljs library. Accept data in numeric format.
Installation
npm
npm i @revolist/revogrid-column-numeral
pnpm
pnpm add @revolist/revogrid-column-numeral
yarn
yarn add @revolist/revogrid-column-numeral
bun
bun add @revolist/revogrid-column-numeral
Basic usage
js
import NumberColumnType from '@revolist/revogrid-column-numeral' // import library
const plugin = { numeric: new NumberColumnType('0,0') } // create plugin entity
const columns = [{ prop: 'num', columnType: 'numeric' }] // define column type
const rows = [{ num: 1000 }]
const grid = document.querySelector('revo-grid')
grid.columnTypes = plugin
grid.source = rows
grid.columns = columns
// '1,000'
Advance usage
Check plugin page and numeraljs.