Hello,
I got a project in vue cli.
I want to add it pwa/mobile support.
How can I convert it to quasar cli?
Or to do it with vue cli?
Thanks
Hello,
I got a project in vue cli.
I want to add it pwa/mobile support.
How can I convert it to quasar cli?
Or to do it with vue cli?
Thanks
hello,
what if I need to update the value?
in the database I saved the id of selection, when I pass it it shows the id and not the name…
options: [
{
label: 'North West',
value: '1'
},
{
label: 'North Central',
value: '2'
},
{
label: 'North East',
value: '3'
},
{
label: 'South West',
value: '4'
},
{
label: 'South Central',
value: '5',
},
{
label: 'South East',
value: '6',
},
]
if I choose South West it will be saved as 4 in the db, when I pass 4 for editing I should see the “South West” in the box, but I see 4.
how can I solve it?
My solution is create computed model to handle that issue
I’m using vuex so it how I handled it:
computed: {
options: {
get() {
let val = this.GET_VALUE("my_selected_id");
if (val && val > 0) {
return this.options.find(x => x.id === val);
}
},
set(value) {
this.SET_VALUE({
key: "my_selected_id",
value
});
}
}
}