ember-table icon indicating copy to clipboard operation
ember-table copied to clipboard

Option to conditionally disable selection on some rows

Open kpfefferle opened this issue 7 years ago • 1 comments

While a table may generally want to use the ember-table row selection features, sometimes we want some rows to be selectable and some to not be. For example, I may have a collapsable tree where I only want the leaf nodes to be selectable and not the collapsable parent rows.

Right now the way I'm handling this is to hide the .et-toggle-select on these rows with CSS and then override the onClick action for the table rows to ignore clicks on the rows where I've hidden the selection checkbox.

It seems that it would be better if we could pass some option to ember-tr to disable row selection for some rows.

kpfefferle avatar Dec 17 '18 16:12 kpfefferle

I believe this would be useful as well. I will try the css workaround.

douten avatar Nov 13 '20 20:11 douten