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 multiple nodes on root level

    Framework
    2
    6
    149
    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.
    • T
      tesicg last edited by tesicg

      Is it possible to set up QTree component to have multiple nodes on root level as on the screenshot below?

      ss1.png

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @tesicg last edited by metalsadman

        @tesicg yes, just make it in the same level in your array. Ie.

        ...
          nodes:[
            { name: 'root 1', children:[...], ... },
            { name: 'root 2', ... },
             ...
          ]
        ...
        

        You can see it in this example https://quasar.dev/vue-components/tree#Lazy-loading.

        1 Reply Last reply Reply Quote 0
        • T
          tesicg last edited by tesicg

          This ticket can be closed.

          Thanks a lot!

          metalsadman 1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman @tesicg last edited by

            @tesicg no need to close, just edit the title as solved, serves as reference for others that might stumble upon the same question.

            1 Reply Last reply Reply Quote 0
            • T
              tesicg last edited by

              Ok. But, I’ve got the following message: “ERROR You are only allowed to edit posts for 3600 second(s) after posting”.

              What to do in that case?

              metalsadman 1 Reply Last reply Reply Quote 0
              • metalsadman
                metalsadman @tesicg last edited by

                @tesicg wait for some time after your last post, it’s a security feature of this forums probably to avoid spamming.

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