Closed mohammad-ebrahimi-it closed 2 years ago
hi @jamesdordoy
i have problem .
<template> <div> <div class="form-group"> <button class="btn btn-outline-info btn-sm" @click="editItem(data)"><i class="fa fa-pencil-alt"></i></button> <button class="btn btn-outline-danger btn-sm"@click="deleteItem(data)"><i class="fa fa-trash"></i></button> </div> </div> </template>
<template>
<div>
<div class="form-group">
<button class="btn btn-outline-info btn-sm" @click="editItem(data)"><i class="fa fa-pencil-alt"></i></button>
<button class="btn btn-outline-danger btn-sm"@click="deleteItem(data)"><i class="fa fa-trash"></i></button>
</div>
</template>
<script> export default { props: { data:{},
<script>
export default {
props: {
data:{},
`deleteItem:{` `type:Function` ` },` ` editItem:{` ` type:Function` ` }` `},`
} </script>
}
</script>
and my columns is :
{ label: 'actions', name: 'actions', type: 'html', component:Btn, comp:Btn, handler: this.editItem, event: 'editItem, deleteItem',`
`},`
hi @jamesdordoy
i have problem .
<template>
<div>
<div class="form-group">
<button class="btn btn-outline-info btn-sm" @click="editItem(data)"><i class="fa fa-pencil-alt"></i></button>
<button class="btn btn-outline-danger btn-sm"@click="deleteItem(data)"><i class="fa fa-trash"></i></button>
</div>
</div>
</template>
<script>
export default {
props: {
data:{},
}
</script>
and my columns is :