how to render button vue 2 @click ?

how to render button vue 2 @click ?

rulymufidrulymufid Posts: 1Questions: 1Answers: 0

hellow ,
i am trying to make button for every row using @click on vue 2 , but function doesn't work.
this my code :
{ data: "id", "render": function(data){
return '<button @click="deleteProduct(5)"><i class="fa fa-trash red"></i> Delete</button>';
}
}

how to render button with vue 2 @click ?

Sign In or Register to comment.