Topic: Angular TreeView
mmusone priority asked 1 year ago
How can i pass or get data from a treeview element? I seem to only get the text of the treeview item. I need some sort of data that I can use to load information for the seleted item.
Expected behavior
I get some form of usable data (id, object..etc..) that I can use when someone clicks on a treeview tiem
Actual behavior I seem to only get the DOM element (the text) of the treeview item
Resources (screenshots, code snippets etc.)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 5.0.0
- Device: Windows
- Browser: Chrome
- OS: 10
- Provided sample code: No
- Provided link: No
Rafał Seifert free commented 1 year ago
Could you please explain your request a little more? Currently we have an output activeItemChange that emits ElementRef on user click. What other data would you like to obtain from this event? Do you need some more outputs? As for passing data into treeview, we do not support editing treeview on the fly. You can set the structure of the treeview once via [nodes] input.