Added datatables with turbo frames.

This commit is contained in:
Jan Böhmer 2022-03-05 23:28:29 +01:00
parent 41e0b251a9
commit fed1621a58
5 changed files with 308 additions and 180 deletions

View file

@ -0,0 +1,17 @@
'use strict';
const RegisterEventHelper = class {
constructor() {
this.registerToasts();
}
registerLoadHandler(fn) {
document.addEventListener('turbo:load', fn);
}
registerToasts() {
this.registerLoadHandler(() => $(".toast").toast('show'));
}
}
export default new RegisterEventHelper();