r-grid-addons-v6

0.1.0 • Public • Published

react-data-grid-addons

A set of addons for react-data-grid with things like editors, formatters, toolbars, filters..

Install

npm install --save react-data-grid-addons

Usage

import { Editors, Formatters } from 'react-data-grid-addons';
const { DropDownEditor } = Editors;
const { DropDownFormatter } = Formatters;

const titles = ['Dr.', 'Mr.', 'Mrs.', 'Miss', 'Ms.'];
const columns = [
  ...
  { 
    key: 'titles',
    name: 'Titles',
    editor: <DropDownEditor options={titles} />,
    formatter: DropDownFormatter 
  },
  ...
];

Exports

This package exports:

name source
Editors Editors
Formatters Formatters
Toolbar Toolbar
ToolsPanel ToolsPanelCell
Data Data
Menu Menu
Draggable Draggable
Filters Filters

Dependencies (6)

Dev Dependencies (7)

Package Sidebar

Install

npm i r-grid-addons-v6

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

746 kB

Total Files

72

Last publish

Collaborators

  • xike456