davidguttman / react-pivot

React-Pivot is a data-grid component with pivot-table-like functionality for data display, filtering, and exploration.

Home Page:http://davidguttman.github.io/react-pivot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Row Selection and Cell editors

cliren opened this issue · comments

I like this grid but I need to support editing either inline or upon row selection with a master-detail style view. How easy it is to extend to add checbox column to select rows?

Editing data would be a really cool feature!

Right now a couple issues come to mind though. In most setups a good percentage of the rows will be "summary" rows that don't quite map to editable data (e.g. editing a row in the default view of http://davidguttman.github.io/react-pivot/ is tricky -- what does it mean to edit the "Count", "Amount" or "Avg Amount" for any of those rows?).

Are there any ways to hook in an onClick handler to cells? This seems like a heavily customizable library, if an onClick could be setup, it would allow the user to code whatever they wanted to do in their specific use case. This assumes the data would refresh when changed ...