neo.mjs 4.0.56 → 4.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/form/Container.mjs +16 -0
package/package.json
CHANGED
package/src/form/Container.mjs
CHANGED
|
@@ -137,6 +137,22 @@ class Container extends BaseContainer {
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Updates the invalid state for all fields, which have updateValidationIndicators() implemented.
|
|
143
|
+
* This can be useful for create entity forms which show up "clean", when pressing a submit button.
|
|
144
|
+
*/
|
|
145
|
+
updateValidationIndicators() {
|
|
146
|
+
let fields = this.getFields(),
|
|
147
|
+
form = this.component,
|
|
148
|
+
vdom = form.vdom;
|
|
149
|
+
|
|
150
|
+
fields.forEach(item => {
|
|
151
|
+
item.updateValidationIndicators?.(); // silent update
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
form.vdom = vdom;
|
|
155
|
+
}
|
|
140
156
|
}
|
|
141
157
|
|
|
142
158
|
Neo.applyClassConfig(Container);
|