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 option to suppress checkbox column #136

Closed
CobusT opened this issue Apr 16, 2021 · 4 comments · Fixed by #262
Closed

Table option to suppress checkbox column #136

CobusT opened this issue Apr 16, 2021 · 4 comments · Fixed by #262
Labels
enhancement New feature or request

Comments

@CobusT
Copy link
Contributor

CobusT commented Apr 16, 2021

I see many uses of Table to just view the results in a table format without the need to have the table drive further down-selection. Although the checkboxes on the left are great for having the table drive the next steps (selected rows) it would be great to have an option to have the table without this column.

Perhaps an option like 'selectable' with a default of true?

@mootari
Copy link
Member

mootari commented Apr 18, 2021

"disabled" would seem like a sensible choice?

@mbostock mbostock added the enhancement New feature or request label Apr 29, 2021
@mbostock
Copy link
Member

mbostock commented May 6, 2021

I think disabled would retain the checkboxes, but in a disabled state. I think I’d prefer a select option.

@CobusT
Copy link
Contributor Author

CobusT commented Sep 21, 2021

For now, as a workaround, I am adding this style sheet to Inputs.table where I want to hide the first column:

 .nocheckbox td:nth-child(1), .nocheckbox th:nth-child(1) {
    display: none;
  }
  .nocheckbox td:nth-child(2), .nocheckbox th:nth-child(2) {
    padding-left: 0px;
  }

@shancarter
Copy link

For a css fix that wouldn't break the layout, we could consider visibility: hidden which should just toggle the visibility without affecting layout. https://developer.mozilla.org/en-US/docs/Web/CSS/visibility

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

Successfully merging a pull request may close this issue.

4 participants