We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772c81a commit 872fb3cCopy full SHA for 872fb3c
lib/form-helper/src/vanilla/form-helper.ts
@@ -134,6 +134,12 @@ export class FormHelper {
134
return true;
135
}
136
137
+ setFormData(data: Record<string, unknown>) {
138
+ Object.entries(data).forEach(([key, value]) => {
139
+ this.setFieldVal(key, value);
140
+ });
141
+ }
142
+
143
static globalControls: Record<string, FormControlFinder> = {
144
picker: ($field, $scope) => {
145
const $picker = $field.closest('[z-use-picker]');
0 commit comments