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

[Table] selectable={false} doesn't hide select boxes #2330

Closed
elie222 opened this issue Dec 1, 2015 · 4 comments
Closed

[Table] selectable={false} doesn't hide select boxes #2330

elie222 opened this issue Dec 1, 2015 · 4 comments
Labels
component: table This is the name of the generic UI component, not the React module!

Comments

@elie222
Copy link

elie222 commented Dec 1, 2015

Not all tables need select boxes. Most don't.

It would be nice if there was an easy way to remove the select boxes from a table. Doing selectable={false} just disables the select boxes. Is there a way to hide them completely?

@42ae
Copy link

42ae commented Dec 3, 2015

You can achieve this with these two props:

  • displaySelectAll for <TableHeader>
  • displayRowCheckbox for <TableBody>

@elie222
Copy link
Author

elie222 commented Dec 3, 2015

Did I miss that in the documentation? Maybe I'll update it myself
On 3 Dec 2015 17:58, "Alexandre E" notifications@github.com wrote:

You can achieve this with these two props:

  • *displaySelectAll={false} * for
  • *displayRowCheckbox={false} * for


Reply to this email directly or view it on GitHub
#2330 (comment)
.

@elie222
Copy link
Author

elie222 commented Dec 4, 2015

This works. Thanks. And it's also in the documentation. I just didn't look in the right place...

@elie222 elie222 closed this as completed Dec 4, 2015
@elie222
Copy link
Author

elie222 commented Dec 4, 2015

I'll add to this answer, you also need to do: adjustForCheckbox={false} or you'll get an extra unwanted column in the header

@zannager zannager added the component: table This is the name of the generic UI component, not the React module! label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants