q-toggle inside d-data-table is not working
-
I’m using a q-toggle inside a q-data-table as follows and it’s not possible to toggle the component in UI.
<q-data-table
:data=“mods”
:config=“config”
:columns=“columns”><template slot="col-name" slot-scope="cell"> <span>{{cell.data}}</span> </template> <template slot="col-enabled" slot-scope="cell"> <q-toggle v-model="cell.data"/> </template> </q-data-table>
The ‘mods’ is an array with:
[{name: ‘quasar’, enabled: true}]