You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement some custom functionality in my program based off what element in the tree I am hovering over. While I can easily tell what item has been selected, I can not seem to find a way to determine what individual element is being hovered over.
Proposed solution
VTreeview has activated which is an array of ids of activated nodes. All that is needed is something like "hovered" which is an array of ids of hovered over node(s). This probably doesn't need to be an array and can just be a single element.
The text was updated successfully, but these errors were encountered:
Depending on the use case, you can either wrap every item in v-hover or set @mouseenter on items and @mouseleave on the container.
If only VTreeView would apply #item slot to the expandable nodes as well, the example 1 would be fully functional.
Passing onMouseenter via item-props works better - example 2 - but, you need to re-apply it when using #item slot as it does not get passed to its binding props.
--
I wonder if combining both counts for calling it a supported feature... 🤔 with the exception of inability to wrap whole node item.
Problem to solve
I am trying to implement some custom functionality in my program based off what element in the tree I am hovering over. While I can easily tell what item has been selected, I can not seem to find a way to determine what individual element is being hovered over.
Proposed solution
VTreeview has activated which is an array of ids of activated nodes. All that is needed is something like "hovered" which is an array of ids of hovered over node(s). This probably doesn't need to be an array and can just be a single element.
The text was updated successfully, but these errors were encountered: