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: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,4 +76,8 @@ All notable changes to this project will be documented in this file.
76
76
77
77
## [2.1.0]
78
78
### Changed
79
-
-`send-server-request` only takes two params. The first one is a map that must contain a `:name` key along with optional `:value`, `:evt`, `:debounce`, `:throttle` keys. The second one is the user provided fn for the server http request.
79
+
-`send-server-request` only takes two params. The first one is a map that must contain a `:name` key along with optional `:value`, `:evt`, `:debounce`, `:throttle` keys. The the second one is the user provided fn for the server http request.
80
+
81
+
## [2.1.1]
82
+
### Added
83
+
-`keywordize-keys` config param. It casts all strings to keywords, allowing the developer to only deal with keywords across the form components and handlers.
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ As at this state you must be dying of curiosity, I will dive right into the impl
33
33
#### In Deps
34
34
35
35
```clojure
36
-
fork {:mvn/version"2.1.0"}
36
+
fork {:mvn/version"2.1.1"}
37
37
```
38
38
39
39
or
@@ -176,25 +176,25 @@ If some parts look a bit obscure, the will be explained thoroughly in the follow
176
176
177
177
#### Params
178
178
179
-
`:form-id` makes fork aware of your form elements. If it is not specified, a random id will be generated and will be provided through the same `:form-id` key.
179
+
`:form-id` makes fork aware of your form elements. If it is not specified, a random id will be generated and will be provided through the same `:form-id` key. - Key
180
180
181
-
`:path` lets you choose where to store your form global events i.e. server related stuff. MANDATORY!
181
+
`:path` lets you choose where to store your form global events i.e. server related stuff. MANDATORY! - Key
182
182
183
-
`:prevent-default?` does not automatically send your form to the server on submit.
183
+
`:keywordize-keys` allows you to work with keywords instead of strings - Boolean
184
184
185
-
`:clean-on-unmount?`resets the state when your component is unmounted. (Useful when used with re-frame).
185
+
`:prevent-default?`does not automatically send your form to the server on submit. - Boolean
186
186
187
-
`:validation` to pass a validation function that gives you the form values in a map as single param.
187
+
`:clean-on-unmount?` resets the state when your component is unmounted. (Useful when used with re-frame). - Boolean
188
188
189
-
`:initial-values` to pre-populate the inputs.
189
+
`:validation` to pass a validation function that gives you the form values in a map as single param. - Function
190
190
191
-
`:initial-touched` to pre-populate the inputs and set them as touched.
191
+
`:initial-values` to pre-populate the inputs. - Map
192
192
193
-
`:on-submit` lets you write your own submit logic. It gives you a map with `:state :path :values :dirty :reset` keys.
193
+
`:initial-touched` to pre-populate the inputs and set them as touched. - Map
194
194
195
-
`:on-submit-server-message` returns a string message coming from the server response body.
195
+
`:on-submit` lets you write your own submit logic. It gives you a map with `:state :path :values :dirty :reset` keys. - Function
196
196
197
-
`:component-did-mount` to perform any logic after the component is mounted. It takes a function and provides one argument that consists of a map of handlers: `set-touched, set-untouched, set-values, disable, enable, disabled?, handle-change, handle-blur, send-server-request`
197
+
`:component-did-mount` to perform any logic after the component is mounted. It takes a function and provides one argument that consists of a map of handlers: `set-touched, set-untouched, set-values, disable, enable, disabled?, handle-change, handle-blur, send-server-request` - Function
0 commit comments