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
- Add 3 classes (*first*, *second*, *third*) if a checkbox is true:
62
+
- Add 3 classes (*first*, *second*, *third*) if a checkbox is not checked:
62
63
63
-
`f.input :published, input_html: { data: { if: 'checked', action: 'addClass first second third', target: '.grp1' } }`
64
+
`f.input :published, input_html: { data: { if: 'not_checked', action: 'addClass first second third', target: '.grp1' } }`
64
65
65
66
- Set another field value if a string field is blank:
66
67
@@ -183,6 +184,8 @@ The link url is loaded via AJAX before opening the dialog.
183
184
184
185
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
185
186
187
+
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.
0 commit comments