1
- 0.6.0 / 199X
2
- ============
1
+ 0.6.0 / 2014-05-07
2
+ ==================
3
3
4
4
Breaking Changes
5
5
----------------
6
6
7
7
* Renamed ``form.isBound `` to ``form.isInitialRender ``, which more accurately
8
8
reflects usage of this property (it was always being used in Forms as
9
9
``!isBound ``)
10
- * Changed ``setData() `` to no longer accept prefixed data by default. Added a
11
- ``prefixed `` option argument which controls this. This makes `` setData() ``
12
- more user-friendly for use with controlled forms, to update what's displayed
13
- in them .
10
+ * Changed ``form. setData() `` to no longer accept prefixed data by default.
11
+ Added a ``prefixed `` option argument which controls this and a new
12
+ `` setFormData() `` method which replicates the old behaviour. This makes
13
+ `` setData() `` more user-friendly for use with controlled forms .
14
14
15
15
New Features
16
16
------------
17
17
18
18
* Added per-field validation as the user makes changes to the form, configured
19
- by passing a ``validation `` argument when constructing a Form or Field .
19
+ by passing a ``validation `` option when constructing a Form, Field or FormSet .
20
20
* Added toggling of creation of controlled React components, configured by
21
- passing a ``controlled `` argument when constructing a Form. When using
22
- controlled components, form widgets reflect the state of ``form.data ``, so you
23
- can change what's displayed in the form by updating its data.
24
- * Added calling of an ``onStateChange() `` callback -- passed as an argument when
25
- constructing a Form -- any time validation state may have changed as a result
26
- of calling `` setData() `` or `` updateData() ``, or as a result of validation
27
- triggered by user interaction. This option becomes required when using
28
- interactive validation or controlled components .
21
+ passing a ``controlled `` option when constructing a Form or FormSet . When
22
+ using controlled components, form widgets reflect the state of ``form.data ``,
23
+ so you can change what's displayed in the form by updating its data.
24
+ * Added calling of a ``onStateChange()`` callback when provided -- passed as an
25
+ option when constructing a Form or FormSet -- any time validation state may
26
+ have changed as a result of updating user input from controlled components, or
27
+ as a result of validation triggered by user interaction. This option becomes
28
+ required when using `` validation `` or `` controlled `` options .
29
29
* Added support for partial updating (``form.updateData(partialData) ``) and
30
30
cleaning (``form.partialClean(fieldNames) ``) of data.
31
31
* Added ``form.reset(newInitial) `` to reset a form back to its initial state,
@@ -37,17 +37,15 @@ New Features
37
37
hooking up full-form ``onSubmit `` validation.
38
38
* Added ``form.isComplete() `` to determine if all required fields have valid
39
39
input data when validation is being performed interactively.
40
- * Added ``Widget.prototype.needsInitialValue `` to allow Widgets to always
41
- receive the initial value of a field in addition to user input to be rendered.
42
40
* Added ``.errorMessage() `` and ``.errorMessages() `` to BoundField as a
43
41
convenience for accessing error message strings, instead of having to go
44
42
through ``.errors() `` and use the ErrorList API.
45
43
* Added generation of a ``validCssClass `` in default rendering or when using
46
44
``BoundField#cssClasses() `` directly, if present on a form or its prototype.
47
- * Added a ``setFormData() `` method to Forms and FormSets for manually setting
48
- prefixed data.
49
45
* Added a top-level ``validateAll `` utility method equivalent to
50
46
``form.validate() `` but for multiple Forms and/or FormSets.
47
+ * Added ``Widget.prototype.needsInitialValue `` to allow Widgets to always
48
+ receive the initial value of a field in addition to user input to be rendered.
51
49
52
50
Changes
53
51
-------
@@ -57,7 +55,7 @@ Changes
57
55
errors being displayed), which makes them lose focus.
58
56
* Form and FormSet ``cleanedData `` is now always defined regardless of whether
59
57
or not any validation has been performed yet -- this makes it safe to check
60
- for data at any time.
58
+ for data at any time, particularly in cross-field validation .
61
59
* Updated to React 0.10 -- there are no library dependencies on new 0.10 features,
62
60
but unit tests now make use of its enhanced support for rendering to static
63
61
HTML.
0 commit comments