mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
|
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();
|
||
|
}
|
||
|
}
|