Tree: sticky checkboxes and actions buttons #2020
Replies: 1 comment 8 replies
-
The filter button that you have is using the You can use CSS selectors to override the styles to create this, but you should avoid using private class names like |
Beta Was this translation helpful? Give feedback.
-
Hi, I am working on replacing old tree component with the one provided by
@itwin/itwinui-react
and having some trouble. In old tree implementation we have horizontal scroll when tree nodes have long labels or tree is deeply expanded. To make checkboxes easier to use with horizontal scroll they are positionedsticky
and are always visible on the left size of the tree e.g:I tried to achieve this using iTwinUI Tree but could not make checkboxes
sticky
.We are also showing filtering button on the right side when node is hovered. This button is also positioned
sticky
to make sure that it is always in the same place e.g:I couldn't achieve this as well. It looks like this one is not working because
._iui3-tree-node-content
class addsoverflow: hidden
. I get he behavior I want by removing it.This the the sandbox where I tried to implement these features: https://stackblitz.com/edit/vitejs-vite-2ubrrb?file=src%2FApp.tsx. You can see that expanding deeply in the tree horizontal scrollbar appears but checkboxes and filter button does no stick.
I wanted to know if I am missing something or this it not possible to achieve at the moment? If this does not look like a good approach from UX perspective I am open to suggestions.
Beta Was this translation helpful? Give feedback.
All reactions