const actions = this.$app.actions.create({
//targetEl: event.target.closest('a'),
targetX: event.clientX - 100,
targetY: event.clientY + 110,
backdrop: false,
buttons: [
[{
text: 'ویرایش کردن',
icon: '<i class="material-icons outlined">settings</i>',
onClick: () => this.editBook(id),
},
{
text: 'ساخت کتاب',
icon: '<i class="material-icons outlined">book</i>',
onClick: () => this.createBook(index),
},
{
text: 'حذف کردن',
icon: '<i style="color:red" class="material-icons outlined">delete</i>',
onClick: () => this.deleteBook(id),
bold: true,
color: 'red'
}]
]
}).open();
throws:
Cannot read property 'trigger' of undefined