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

    I followed the steps, but it doesn't work

    Framework
    1
    2
    108
    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.
    • E
      eloy.silva last edited by eloy.silva

      Re: [Solved] [V1] QTree does not expand all by property default-expand-all

      I followed the steps, but it doesn’t work

      <q-tree
            ref="tree"
            :nodes="computedNodes"
            node-key="nodeKey"
            color="secondary"
            default-expand-all
            :tick-strategy="tickStrategy"
            :ticked.sync="ticked"
            @update:selected="selectNode"
            :selected="selected"
          />
      
      async mounted() {
          var self = this;
      
          axiosInstance.get("Admin/Profile/GetActionItems").then(response => {
            self.nodes = response.data;
          });
          await self.$nextTick()
          self.$refs.tree.expandAll()
      
        },
      computed: {
          computedNodes() {
            return this.nodes.length > 0 ? this.nodes : [];
          }
        },
      
      E 1 Reply Last reply Reply Quote 0
      • E
        eloy.silva @eloy.silva last edited by

        @eloy-silva

        Solved :

        🙂

        async mounted() {
            var self = this;
             await axiosInstance.get("Admin/Profile/GetActionItems").then(response => {
              self.nodes = response.data;
            });
            await self.$nextTick()
            self.$refs.tree.expandAll()
        
          },
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post