ransack-search-element
v0.0.2-alpha
Published
Generic Ransack search element
Downloads
2
Readme
RansackSearchElement
Generic Ransack backed element to give a dynamic frontend for advanced searching and filtering, such as for exploratory joins. Still early in development (refactoring?), so contributions welcome. This is originally based on a set of React and Bootstrap elements.
Todo
- [x] Write wrapper Rails tags
- [ ] Rip out React and replace with Web Components
- [ ] Rip out Bootstrap and replace with leaner default styles (possibly customizable with sass?)
- [ ] Decouple javascript further
- [ ] Write adapters to interface with other search backends? (big maybe)
Usage
Use ransack_search_tag
in your views, and supply it with more options
as of yet to be defined.
Installation
gem 'ransack_search_element'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ransack_search_element
You will also need to install the accompanying npm package,
ransack-search-element
:
yarn add ransack-search-element
Contributing
Yeah just send it.
License
The gem is available as open source under the terms of the MIT License.