Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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

 
Ranch Hand
Posts: 69
1
  • Mark post as helpful
  • send pies
  • 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?
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic