• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How would you use v-treeview with an async method?

 
Ranch Hand
Posts: 69
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I got a method that pulls the data from the database. The method has a parameter that it accepts and is important because depending on that it pulls different data from the database. Now I need a way to pull the data in a treeview form and I found that vuetify has it, but I don’t really get how to do that. Its examples show how to use it with already predefined data, but I have a dynamic one.

This is the method. So far I had to use v-list-group and loop through the results but is not as nice looking as the treeview. Also, there is a problem to expand it. If, for example, I got more subgroups. With v-treeview it seems to be all aligned nicely.



It is using graphql for pulling data. I want that data to be pulled in for of a treeview. How can I do that?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic