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

    q-tree - Display dynamically added nodes

    Framework
    2
    3
    312
    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.
    • C
      ckoeste1 last edited by

      Hello everybody!
      I’ve tried solving the following issue but without any result.
      I have a normal q-tree with some kind of data. With a button that is not in the q-tree, I want to add a new node. It works fine till the moment the new data should appear in the displayed q-tree.
      In mounted-method, the data for the tree is loaded from a json-file. The data is displayed without any problems in the tree. Then, I push the button and the new data is successfully pushed to the data-object (I can see it because the data-object is also displayed). But the tree is not updated. In the data-object the new data is found.
      How could it be possible to make the dynamically added data visible in the tree and not only in the data-object of the tree?
      Regards
      Chris

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

        @ckoeste1 check if the node-keys you set are unique.

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

          @metalsadman Thanks for your reply.
          I’ve checked the code and all keys were unique. But another problem was with my source code. I’ve corrected it and a new leaf is added, now, but, and that is a little strange, only when I deselect the node.

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