Treeview for each li node add some additional elements


Topic: Treeview for each li node add some additional elements

Yiannis Kyriazidis pro premium priority asked 2 weeks ago

using treeview in each li node I wish to have an anchor element and a drop down button aligned to the end to show some contextual actions for each node.

But as shown in snippet below it doesnt work as expected . I cannot get the anchor and dropdown button for each treenode aligned on same row.

https://mdbootstrap.com/snippets/standard/yiannis_kyriazidis/3470321

Can you please help .


Yiannis Kyriazidis pro premium priority answered a week ago

Ok ,do you agree with this approach ? https://mdbootstrap.com/snippets/standard/yiannis_kyriazidis/3476401

I think this is correct


Michał Duszak commented a week ago

Yeah it looks fine


Try by adding `class="d-flex flex-row"` to each li element. Then you can add some margin to your dropdown. And delete your span elements. It looks something like this in my case

https://mdbootstrap.com/snippets/standard/m-duszak/3475276

How does it look for you?


Yiannis Kyriazidis pro premium priority answered a week ago

Thank you for example My issue here is that say you have a root element with 2 child nodes . In the root element i add a dropdown button and under that the ul with the children. It doesnt seem to work , as shown in below snippet . I think its because it expects the child ul element to be directly unde the root anchor tag.

https://mdbootstrap.com/snippets/standard/yiannis_kyriazidis/3476299#html-tab-view


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.1
  • Device: windows desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: Yes
Tags