1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Extract Materialize Tabs controller

This commit is contained in:
Yassine Guedidi 2025-03-01 00:10:16 +01:00
parent 1f76184d02
commit 0589066ed1
6 changed files with 16 additions and 5 deletions

View file

@ -0,0 +1,12 @@
import { Controller } from '@hotwired/stimulus';
import M from '@materializecss/materialize';
export default class extends Controller {
connect() {
this.instance = M.Tabs.init(this.element);
}
disconnect() {
this.instance.destroy();
}
}

View file

@ -285,7 +285,6 @@ $(document).ready(() => {
constrainWidth: false,
});
$('.tabs').tabs();
$('.tooltipped').tooltip();
$('.fixed-action-btn').floatingActionButton();