question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

selectRow className prop. should support function types

See original GitHub issue

bgColor 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){ ... },
}

bgColor docs for reference

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
serjoshuacommented, May 22, 2017

hi @AllenFang

issue is now fixed in QA and Dev 😃 thank you very much!!!

1reaction
serjoshuacommented, May 19, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found