Closed joaoassisb closed 3 years ago
@joaoassisb after analysing this PR I decided to revert your previous commit. I think you should work more in the proposal and describe what use cases this feature will enable.
@assisrafael the use case is to simplify the usage of TreeViews with Forms. At the moment, the template function passes only the item,index and parentItem, making a lot harder to handle paths and possible changes.
I updated the TreeViewExample to illustrate better my use case. Now I can use a FormInput using the relativePath in the name of the input, and the changes will automatically updates the initial nodes structure.
@assisrafael the use case is to simplify the usage of TreeViews with Forms. At the moment, the template function passes only the item,index and parentItem, making a lot harder to handle paths and possible changes.
Your use case make sense.
Regarding the PR content, I think it would be better with the prop would be called nodePath
instead of relativePath
.
@joaoassisb after analysing this PR I decided to revert your previous commit. I think you should work more in the proposal and describe what use cases this feature will enable.