Created
June 16, 2021 03:22
-
-
Save existentialmutt/4955e1a7480e5ff087fe33e88743417c to your computer and use it in GitHub Desktop.
Revisions
-
existentialmutt created this gist
Jun 16, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import { Controller } from "stimulus"; import SlimSelect from "slim-select"; export default class extends Controller { connect() { this.slimSelect = new SlimSelect({ select: this.element, addToBody: true }); } disconnect() { this.slimSelect.destroy(); } }