1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-31 18:31:02 +00:00

Extract Materialize Tooltip controller

This commit is contained in:
Yassine Guedidi 2025-03-01 00:14:40 +01:00
parent 0589066ed1
commit 2a2172037e
5 changed files with 28 additions and 17 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.Tooltip.init(this.element);
}
disconnect() {
this.instance.destroy();
}
}