mmusone priority asked 5 months 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.)


Rafał Seifert staff commented 5 months 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.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • 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