README.md in unirer-bootstrap-0.6 vs README.md in unirer-bootstrap-0.7
- old
+ new
@@ -59,18 +59,30 @@
<%= render partial: 'unirer/bootstrap/script', locals: { options: { react: true } } %>
```
The following code snippet loads the React JS with the given version.
```erb
-<%= render partial: 'unirer/bootstrap/script', locals: { options: { :jquery => { version: '2.2.0' }, :'moment-with-locales' => true, :'bootstrap-datetimepicker' => true, :react => { version: '0.14.6' } } } %>
+<%= render partial: 'unirer/bootstrap/script',
+ locals: {
+ options: {
+ :jquery => { version: '2.2.0' },
+ :'moment-with-locales' => true,
+ :'bootstrap-datetimepicker' => true,
+ :react => { version: '0.14.6' }
+ }
+ }
+%>
```
The following JavaScript libraries are always enabled, only the version can be configurable:
- :jquery
- :bootstrap
The following JavaScript libraries are switchable, and the version can be configurable:
- :'moment-with-locales'
- :'bootstrap-datetimepicker'
+- :'bootstrap-datepicker'
+- :'bootstrap-table'
+- :buttons
- :react
### Render the Style
@@ -79,11 +91,16 @@
<%= render partial: 'unirer/bootstrap/style', locals: { options: { :'font-awesome' => { version: '4.4.0' }, :'bootstrap-datetimepicker' => true } } %>
```
The following CSS libraries are always enabled, only the version can be configurable:
- :bootstrap
The following JavaScript libraries are switchable, and the version can be configurable:
+- :'bootstrap-theme'
- :'font-awesome'
- :'bootstrap-datetimepicker'
+- :'bootstrap-datepicker'
+- :'bootstrap-table'
+- :buttons
+- :'animate.css'
### Render the Form Field
The Form Field partial includes the HTML form field tags for Rails Form Builder and Bootstrap.