README.md in activeadmin_dynamic_fields-0.2.0 vs README.md in activeadmin_dynamic_fields-0.2.1
- old
+ new
@@ -27,11 +27,12 @@
+ **not_checked**: check if a checkbox is not checked
+ **blank**: check if a field is blank
+ **not_blank**: check if a field is not blank
- **data-eq**: check if a field has a specific value
- **data-not**: check if a field hasn't a specific value
-- **data-target**: target css selector
+- **data-target**: target css selector (from parent fieldset, look for the closest match)
+- **data-gtarget**: target css selector globally
- **data-action**: the action to trigger, values:
+ **hide**: hides elements
+ **slide**: hides elements (using sliding)
+ **fade**: hides elements (using fading)
+ **addClass**: adds classes
@@ -98,10 +99,10 @@
target.prop( 'checked', ( el.val() == 'cat2' ) );
target.trigger( 'change' );
}
```
-### Inline editing example
+### Inline editing examples
- Prepare a custom member action to save data, an *update* helper function is available (third parameter is optional, allow to filter using strong parameters):
```rb
member_action :save, method: [:post] do