Repository navigation
feat(Tree): add item-wrapper slot - #4521
Conversation
commit: |
|
Hey 👋 This would be exactly what we need for our project. 🤩 We have a component that is based on the Tree component, but each element should be rendered as something other than a button. So the item-wrapper slot would be perfect. Thx, Mel |
item-wrapper slotitem-wrapper slot
|
Hey, I would like to use the item-wrapper to "wrap" the item in a droppable div, but keep the same base display. When i use the item-wrapper, it overrides everything in it instead of wrapping it (or I don't use it correctly). I would expect this to do the job :
as it doesnt work as expected, can someone give me a hint on how to do it if its possible ? |
🔗 Linked issue
Resolves: #4424
❓ Type of change
📚 Description
I've added the option to replace the entire item using the
item-wrapperslot, this can be useful to display errors or to handle end branches of the tree.📝 Checklist