Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it be used with tables? #60

Open
matveychuk opened this issue Sep 10, 2019 · 1 comment
Open

Can it be used with tables? #60

matveychuk opened this issue Sep 10, 2019 · 1 comment

Comments

@matveychuk
Copy link

I want to use this library to select rows in the table for further actions. I can describe component type for SelectableGroup, for example, tbody. But I can't set component type for SelectableComponent, it's always div. So I have error <tr> cannot appear as a child of <div>. Is there any way to handle it?

@IrisCZ
Copy link

IrisCZ commented Jan 14, 2020

Hi! Maybe it's a little bit late for you to solve this but what I've done is to include the SelectableComponent in a td. The code would be ended something like this:

<td>
     <SelectableComponent
            available={ available }
            onChange={() => {}}
            selectableKey={ key }
      >
           {text}
       </SelectableComponent>
</td>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants