You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following code to populate a vue-treeselect from a json file. I need to save the options that the user has selected in localStorage, and get them selected again when the page is reloaded.
Vue.component("treeselect", VueTreeselect.Treeselect);
var tree = new Vue({
el: "#app",
data: {
value: null,
clearOnSelect: true,
closeOnSelect: true,
flat: true,
sortValueBy: 'ORDER_SELECTED',
options: [],
},
methods: {
normalizer: function(node) {
return {
id: node.id,
label: node.label,
children: node.children,
};
},
},
mounted() {
let vm = this;
I have the following code to populate a vue-treeselect from a json file. I need to save the options that the user has selected in localStorage, and get them selected again when the page is reloaded.
Vue.component("treeselect", VueTreeselect.Treeselect);
var tree = new Vue({
el: "#app",
data: {
value: null,
clearOnSelect: true,
closeOnSelect: true,
flat: true,
sortValueBy: 'ORDER_SELECTED',
options: [],
},
methods: {
normalizer: function(node) {
return {
id: node.id,
label: node.label,
children: node.children,
};
},
},
mounted() {
let vm = this;
});
The text was updated successfully, but these errors were encountered: