You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-2Lines changed: 43 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Features:
6
6
7
7
- set conditional checks on fields
8
8
- trigger some actions on other fields
9
+
- inline field editing
9
10
- create links to load some content in a dialog
10
11
11
12
The easiest way to show how this plugin works is looking the examples [below](#examples-of-dynamic-fields).
@@ -39,7 +40,9 @@ Options are passed to fields using *input_html* parameter as *data* attributes:
39
40
-**data-function**: check the return value of a custom function
40
41
-**data-arg**: argument passed to the custom set function (as array of strings)
41
42
42
-
## Examples of dynamic fields
43
+
## Examples
44
+
45
+
### Dynamic fields examples
43
46
44
47
- A checkbox that hides other fields if false (ex. model *Article*):
45
48
@@ -97,7 +100,45 @@ function on_change_category( el ) {
97
100
}
98
101
```
99
102
100
-
## Example to open a dialog
103
+
### Inline editing examples
104
+
105
+
- Prepare a custom member action to save data, an *update* helper function is available (third parameter is optional, allow to filter using strong parameters):
0 commit comments