selectRow className prop. should support function types
See original GitHub issuebgColor property of selectRow accepts a function type as well as string type.
If our requirements are much complex, it’s more likely we need different classes than different background colors.
In my case, I needed selectRows to have different borders under different conditions. So I’d request that className property also accepts a function type.
const selectRow = {
mode: 'radio',
className: function(row, isSelect){ ... },
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Add or fix missing prop types for components #4398 - GitHub
Currently it looks like none of them accept/use props, unless I'm missing something? At a minimum, they could accept a className prop?
Read more >Select row on click react-table - Stack Overflow
Some things, that I have tried include trying to set a className on click of the row. But I can't seem to find...
Read more >Row Styles - React Data Grid
Function should return either a string (class name), array of strings (array of class names) or undefined for no class. getRowClass = (...
Read more >React Bootstrap Table - Documents - GitHub Pages
Use data to specify the data that you want to display on the table. This prop is required and you should give it...
Read more >General Props | Docs and API Reference - React Data Grid
Below you can find a list of public props that the <ReactDataGrid /> supports. Besides this list, the component also supports all standard...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @AllenFang
issue is now fixed in QA and Dev 😃 thank you very much!!!
thanks allen! will try to do it over the weekend. but we’ll be able to test it at most monday 😊 will keep you posted.