Skip to content

Instantly share code, notes, and snippets.

@existentialmutt
Created June 16, 2021 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save existentialmutt/4955e1a7480e5ff087fe33e88743417c to your computer and use it in GitHub Desktop.
Save existentialmutt/4955e1a7480e5ff087fe33e88743417c to your computer and use it in GitHub Desktop.
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