Am using the rawtiw datatable for my vuejs2 laravel app. I would like to automatically toggle some checkboxes as checked
so i have
<vuetable ref="vuetable"
api-url="/user-management/table-permissions"
:fields="tablecols"
:sort-order="sortOrder"
@vuetable:load-success="loadedData"
>
</vuetable>
THe fields have a checkbox as
{
name: '__checkbox',
title: '#',
titleClass: 'text-right',
dataClass: 'text-right'
},
....others
what am trying to do is to mark certain checkboxes as checked when the table loads successifully
loadedData(){
this.$refs.vuetable.selectedTo[1] //mark 1 as checked
}
But the above fails. How do i go about toggeling the checkboxes as checked.Is there anyone who has done this successifully. I have opened a github issue request but not got an answer yet.
Aucun commentaire:
Enregistrer un commentaire