Skip to content

Commit 7b48f8a

Browse files
committed
v0.3.0
1 parent c1c7154 commit 7b48f8a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# ActiveAdmin Dynamic Fields [![Gem Version](https://badge.fury.io/rb/activeadmin_dynamic_fields.svg)](https://badge.fury.io/rb/activeadmin_dynamic_fields) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_dynamic_fields.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_dynamic_fields)
22

3-
An Active Admin plugin to add dynamic behaviors to fields.
3+
An Active Admin plugin to add dynamic behaviors to some fields.
44

55
Features:
66
- set conditional checks on fields
7-
- trigger some actions on other fields
7+
- trigger actions on target elements
88
- inline field editing
99
- create links to load some content in a dialog
1010

@@ -14,7 +14,10 @@ The easiest way to show how this plugin works is looking the examples [below](#e
1414
- Add to your Gemfile: `gem 'activeadmin_dynamic_fields'`
1515
- Execute bundle
1616
- Add at the end of your ActiveAdmin javascripts (_app/assets/javascripts/active_admin.js_):
17-
`//= require activeadmin/dynamic_fields`
17+
18+
```js
19+
//= require activeadmin/dynamic_fields
20+
```
1821

1922
## Options
2023
Options are passed to fields using *input_html* parameter as *data* attributes:
@@ -38,6 +41,8 @@ Options are passed to fields using *input_html* parameter as *data* attributes:
3841
- **data-function**: check the return value of a custom function
3942
- **data-arg**: argument passed to the custom set function (as array of strings)
4043

44+
A check condition or a custom check function are required. A trigger action is required too, unless you are using a custom function (in that case it is optional).
45+
4146
## Examples
4247

4348
### Dynamic fields examples

lib/activeadmin/dynamic_fields/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module ActiveAdmin
44
module DynamicFields
5-
VERSION = '0.2.10'
5+
VERSION = '0.3.0'
66
end
77
end

0 commit comments

Comments
 (0)