Ruby on Rails #94 Rails 7 Select Box with Search using Slim-Select

01/11/2022 (over 1 year ago)
·

I was planning to create a short episode on enabling slim-select, but it ended up having a big boilerplate for adding select and multiselect. If you don't need the boilerplate, feel free to skip to 9:25.

The boilerplat app uses Importmaps for JS and Tailwind for CSS.

I like slim-select because it uses vanilla javascript and does not rely on jQuery. If you don't like slim-select, the second best alternative is tom-select.

Episode source code: https://github.com/corsego/94-slim-select/commit/13daec3b195cbc126adf6588e96b2850b0d883c4
Text version: https://blog.corsego.com/stimulus-slim-select


0
Sign in to join the conversation