README.md in activeadmin_selectize-0.1.6 vs README.md in activeadmin_selectize-0.2.0
- old
+ new
@@ -1,20 +1,19 @@
# ActiveAdmin Selectize [](https://badge.fury.io/rb/activeadmin_selectize)
An Active Admin plugin to use [Selectize.js](http://selectize.github.io/selectize.js) (jQuery required).
Features:
-- nice select inputs
-- items search
-- AJAX content loading
-- improve many-to-many / one-to-many selection
+- nice select inputs;
+- items search;
+- AJAX content loading;
+- improve many-to-many / one-to-many selection.
## Install
- Add to your Gemfile:
`gem 'activeadmin_selectize'`
-- Add _jquery-rails_ gem or include jQuery manually
- Execute bundle
- Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
`@import 'activeadmin/selectize_input';`
- Add at the end of your ActiveAdmin javascripts (_app/assets/javascripts/active_admin.js_):
```css
@@ -78,10 +77,12 @@
- If the select items "gets cut" by the container try adding: `'data-opts': '{"dropdownParent":"body"}'`
- Alternative syntax to pass data attributes: `input_html: { data: { opts: '{}' } }`
+- To use this plugins with ActiveAdmin 1.x please use the version 0.1.6
+
## Options
Pass the required options using `input_html`.
- **data-opt-remote**: URL used for AJAX search requests (method GET)
@@ -99,10 +100,10 @@
Take a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
## Contributors
-- [Mattia Roccoberton](http://blocknot.es) - creator, maintainer
+- [Mattia Roccoberton](http://blocknot.es): author
## License
[MIT](LICENSE.txt)