No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Qtree with same label on parent and children

    Framework
    2
    3
    778
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jaimar last edited by

      Hi, I came across a problematic with QTree component.
      When the label is the same in the parent and in the children only the parent is displayed.
      Example:
      nodes= [{label: test, children: [{label: test, children: []}]}]
      then only test is displayed as tree without children

      1 Reply Last reply Reply Quote 0
      • a47ae
        a47ae last edited by

        You need to set the node-key prop to tell Quasar what your unique key on your node is. Also every node has to have a unique key.

        1 Reply Last reply Reply Quote 0
        • J
          jaimar last edited by

          Ok thank you, it works now with a unique id for each node.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post