Questions tagged [vue-treeselect]

vue-treeselect is a multi-select component with nested options support for Vue.js.

15 questions
3
votes
1 answer

Can't find a way to add new item when it doesn't exist using Vue-Treeselect

I'm trying to create a dropdown menu with a list I have populated from the backend. Here's the library in question Vue Treeselect Once the user tries to enter something that's not inside, I want to be able to dynamically add it, and later when the…
2
votes
2 answers

How to implement "Select All" for vue-treeselect library?

There is a multi-select feature available in the vue-treeselect library; but what I am looking at is a "Select All" option (see snippet below): Is there some undocumented config or can this feature be implemented without too much hassle?
Akshay Lokur
  • 6,680
  • 13
  • 43
  • 62
1
vote
1 answer

How to select and get all the elements from a tree-select and put them in a list?

I want to select all the options from a tree-select and put them in a list, but I just can see the selected option when I inspect the elements. The other elements I can't find, so how can I take them and put them in a list? enter image description…
1
vote
1 answer

How to expand all item in a TreeSelect from Sakai PrimeVUE?

I'm using TreeSelect from Sakai PrimeVUE template, I would like to keep all items expanded on open the component, but could not find this option in the documentation. My TreeSelect implementation:
Rafael
  • 320
  • 2
  • 8
1
vote
1 answer

How can i make a-tree-select always expand all nodes every time in AntDV

I have two-level department linkages, at the first time when I randomly chose a department at first level selector, the second level department tree selector will be automatically generated by event onAChange, and expand all nodes via…
Haven Lin
  • 176
  • 1
  • 16
1
vote
1 answer

How to detect change in vue treeselect

I am using vue treeselect to select multiple week days from a dropdown list. It works well but I want to run a piece of code when a change is made. I have read the documentation but don't understand how to use an event. Think I may need the select…
Mush
  • 45
  • 2
  • 11
1
vote
1 answer

parse json in a vue-treeselect component

In a https://vue-treeselect.js.org/ component, how can I load json? My code is not working
PoseLab
  • 1,841
  • 1
  • 16
  • 22
0
votes
0 answers

How to use Vue component like VueTreeNavigation correctly?

I want to use VueTreeNavigation together with Vue routing in Vue4. I tried to follow the instructions from here My main.js looks like import { createApp } from "vue" import { createRouter, createWebHashHistory } from "vue-router" import MyApp3…
user172501
  • 332
  • 2
  • 11
0
votes
0 answers

valueFormat="object" refreshes v-model after select or new option (vue treeselect)

I have a problem here. I don't know if this is a bug or what but here's my issue. Upon loading my component, I'll assign a selected value to the v-model that is used in the plugin. So, here's my selected values. ofcSelected:[ { …
0
votes
0 answers

I'm writing el-tree using vuejs,it doesn't select what i checked

I'm writing el-tree using vuejs,it doesn't select what i checked. anyone knows why? enter image description here
0
votes
1 answer

Treeselect vue.js - don't show item selected on input box

is it possible to not show the selected items here? Instead, I just want to show the placeholder which in this case it's "Select your favourite(s)... So the final input would look like this:
Vlael
  • 32
  • 1
  • 7
0
votes
1 answer

change treeselect vue value from js

I am trying to make a school project in normal js but I required a tree view select with multiple layers so I ended up after lots of searching finding this. It works great but the only thing I can't seem to figure out is how can I change its value.…
Elias Khazzaka
  • 163
  • 2
  • 11
0
votes
1 answer

Clearing a selected item in dropdown after selecting item in other dropdown with vue-treeselect

I'm coding about auto select provinces in Thailand, When I choose province A in province dropdown the district dropdown will change to value in province A, and when I change to province B in province dropdown value in district dropdown has changed…
Kan Sris
  • 1
  • 1
0
votes
1 answer

How to write unit test for vue-treeselect using vue test utils

I want to write unit test on vue-treeselect. I followed the testcases written in the repository. There they have taken wrapper.vm.forest.nodemap to find the options but when i try it is giving forest "undefined". Does anyone have idea how to get…
-3
votes
1 answer

How to customize the folding icons in Vue Treeselect Component?

I have a Vue TreeSelect component in my nuxt application. The problem is that I want to customize the folding icons in the Treeselect component: How can I do this ? I tried to modify the css classes, to replace the svg dom child by a custom created…
SkydersZ
  • 133
  • 1
  • 2
  • 9