Add a custom element to the end of the list (ul)
zetorby opened this issue · comments
How to add a custom element to the end of the list (ul) ? Example, add button of end list (ul)...
@zetorby Currently there is no such API.
Buttons should be placed outside of Treeview(ul).
Is the following demo helpful?
@zetorby Currently there is no such API. Buttons should be placed outside of Treeview(ul). Is the following demo helpful?
@zetorby
Since this seems to be a special use case, I think it should be implemented on the application side rather than as an API.
One possible implementation would be to check the position of each node in the render
API and add a button if it is the last node in the list.
Would the following sample be helpful?
https://codesandbox.io/s/issue-120-jq2o7t?file=/src/App.tsx
@zetorby Since this seems to be a special use case, I think it should be implemented on the application side rather than as an API.
One possible implementation would be to check the position of each node in the
render
API and add a button if it is the last node in the list.Would the following sample be helpful? https://codesandbox.io/s/issue-120-jq2o7t?file=/src/App.tsx
Yes, that will do, thank you for your help.