Skip to content

Commit

Permalink
Update scripts.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wimurk authored Apr 21, 2022
1 parent 20ce5b1 commit fe9097c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/resources/views/scripts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,21 +234,21 @@ classes["{{ $view->tableId }}"] = new class
createdRow: (row, data, index) => {
$(row).on('click', (el) => {
$(`#{{ $view->tableId }}`).trigger(`dtrow:click`, [row, data, this.table]);
$(`#{{ $view->tableId }}`).trigger(`dtrow:click`, [row, data, this.table, el]);
});
$(row).on('mouseenter', (el) => {
$(`#{{ $view->tableId }}`).trigger(`dtrow:mouseenter`, [row, data, this.table]);
$(`#{{ $view->tableId }}`).trigger(`dtrow:mouseenter`, [row, data, this.table, el]);
});
$(row).on('mouseleave', (el) => {
$(`#{{ $view->tableId }}`).trigger(`dtrow:mouseleave`, [row, data, this.table]);
$(`#{{ $view->tableId }}`).trigger(`dtrow:mouseleave`, [row, data, this.table, el]);
});
$(`#{{ $view->tableId }}`).trigger(`dtrow:render`, [row, data, this.table]);
$(`#{{ $view->tableId }}`).trigger(`dtrow:render`, [row, data, this.table, el]);
},
drawCallback: (settings) => {
$(`#{{ $view->tableId }}`).trigger(`dttable:render`, [settings, this.table.data(), this.table]);
$(`#{{ $view->tableId }}`).trigger(`dttable:render`, [settings, this.table.data(), this.table, el]);
}
};
}
Expand Down

0 comments on commit fe9097c

Please sign in to comment.