Comments (3)
Yes. But, whether we do it internally or as a plugin, I'm not sure.
What it really is under the hood is a custom cell and header that provide a
check box that are bound to an internal or external model, either with on
click callbacks or an on change callback. Its always a question of whether
the table should handle the state of those boxes or if the user should.
I believe it's both but in still architecting how that will work. Do you
have any preferences on how it could be implemented?
On Tue, Nov 1, 2016 at 4:05 AM CW [email protected] wrote:
Hi there,
Is there any plan to implement a selectable row option natively into the
reacttable component, or is this something I should be expected to
implement myself with an additional column?Cheers
β
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AFUmCUKLqKf-u-qH9bp8zeIAlmnnsfapks5q5w7LgaJpZM4Kl8DE
.
from table.
I've just implemented it myself by adding a column with a custom render function that adds the checkbox, works ok.
Your component is nice and flexible, I like it. I think it needs more configurable props on the column though. I think render should be replaced with cellRender, and an additional prop for headerRender to allow custom rendering of the header (for example a select all checkbox). I would also like to see column prop for onClick and onHover callbacks, and being able to specify width and maxWidth as props. Apart from those "issues" I was able to swap out my material-ui table for your react-table fairly easily and I am a lot happier with how it works. Working with your table felt a lot like working with the ExtJs grid; awesome.
from table.
Good news! You can already do custom headers:
columns = [{
header: (props) => <span>My Custom Header!</span>
}]
As for other props and hook points, I'd love to discuss how we can execute on that.
from table.
Related Issues (20)
- your website is down HOT 6
- useQwikTable undefined sorting handlers [QwikCity} HOT 2
- Maximum update depth exceeded when hide virtualize table
- how to allow only table to expand one row at a time HOT 2
- Angular Table Column Filters and Column Grouping Examples not working HOT 3
- Does React 18 work with v6? HOT 1
- `Infinity` is not supported for pageSize HOT 2
- Table doesnβt re-render with new React Compiler + React 19 HOT 5
- multiple rendering useReactTable hook with nextjs14 HOT 1
- Column ordering weird behavior on grouped columns HOT 5
- My website
- Angular Column Ordering example does not work
- Grouping by not using subRows HOT 2
- Updating a useQuery with a key crashes using React Table HOT 1
- cell.getIsAggregated should not check for zero length subrows HOT 2
- `autoResetPageIndex` seems to be default true when `manualPagination=true`, is not expectd as docs saying HOT 1
- Unexpected behavior of array filterFns (arrIncludes, arrIncludesAll, arrIncludesSome) HOT 1
- Table v8 expanding - incorrect state of parent checkbox when selecting subrows
- `getTopRows()` and `getBottomRows()` Not Referentially Stable Between Renders
- Calling `row.getParentRow()` with expanded, filtered row models and initial filtering value throws an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table.