react-table-drag-select icon indicating copy to clipboard operation
react-table-drag-select copied to clipboard

Use integer instead of boolean to represent data

Open Studio384 opened this issue 5 years ago • 3 comments

I want to use this package to create a timetable. However, it has to support multiple states. Is there a way to use an integer instead of a boolean in the cells array?

Studio384 avatar Aug 30 '18 12:08 Studio384

Not presently but it's a good idea. If a get a spare moment I'll add that feature.

A PR is always welcome.

mcjohnalds avatar Sep 06 '18 04:09 mcjohnalds

I'll probably need to figure out a good API for doing more than just boolean state. If you have any thoughts on that I'd be interested to hear it.

mcjohnalds avatar Sep 06 '18 04:09 mcjohnalds

@mcjohnalds @Studio384 We needed something along the lines of this, so I took a stab at an implementation - would be interested to know if this matches what you would look for

benjamincudi avatar Jul 10 '19 22:07 benjamincudi