Closed cscsabai closed 5 years ago
You can use this method: Add attribute in components/DataTable.vue line 90
:data-id="row.item.id"
full line
<b-btn size="sm" v-for="(button, key) in _.get(actions, 'addon')" :key="key" v-bind="button" :data-id="row.item.id">{{button.label}}</b-btn>
Add onclick in config.js
"_actions": {
"addon": {
"button": {
"label": "Approve",
"onclick": "alert('Approved ' + this.dataset.id)"
}
}
}
Thank You. It is working! Save my day :)
May I ask some help how can use the addon tag in DataTable? Following example is working for me:
How can I get to append the selected line _id's to the url? Is there any way for it?