Select and router links
-
Are there an easy way to have router-links in an q-select, autocomplete and so on ? I want to list child-pages in a q-select and load them into router-view.
<template>
<div>
<q-select
filled
v-model=“model”
:options=“options”
map-options
/><router-view></router-view>
</div>
</template>export default {
data () {
return {
model: null,
options: [
{
label: ‘Google’,
value: ‘goog’,
to:’/child-page or href:’/childpage’
}, -
Use the options slot with QItem, which can be used as router links.
https://quasar.dev/vue-components/select#Example--Options-slot
Scott
-
@s-molinari Beautiful!!
. Thanks.