Created
June 16, 2021 03:22
-
-
Save existentialmutt/4955e1a7480e5ff087fe33e88743417c to your computer and use it in GitHub Desktop.
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 characters
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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment