@@ -175,6 +175,28 @@ The current field state.
175
175
176
176
## Methods
177
177
178
+ ### clearValues()
179
+
180
+ ``` ts
181
+ clearValues (opts ? ): void
182
+ ` ` `
183
+
184
+ Defined in: [packages/form-core/src/FieldApi.ts:1319](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1319)
185
+
186
+ Clear all values from the array.
187
+
188
+ #### Parameters
189
+
190
+ ##### opts?
191
+
192
+ ` UpdateMetaOptions `
193
+
194
+ #### Returns
195
+
196
+ ` void `
197
+
198
+ ***
199
+
178
200
### getInfo()
179
201
180
202
` ` ` ts
@@ -231,7 +253,7 @@ Use `field.state.value` instead.
231
253
handleBlur (): void
232
254
` ` `
233
255
234
- Defined in: [ packages/form-core/src/FieldApi.ts:1661 ] ( https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1661 )
256
+ Defined in: [packages/form-core/src/FieldApi.ts:1670 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1670 )
235
257
236
258
Handles the blur event.
237
259
@@ -247,7 +269,7 @@ Handles the blur event.
247
269
handleChange (updater ): void
248
270
` ` `
249
271
250
- Defined in: [ packages/form-core/src/FieldApi.ts:1654 ] ( https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1654 )
272
+ Defined in: [packages/form-core/src/FieldApi.ts:1663 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1663 )
251
273
252
274
Handles the change event.
253
275
@@ -357,7 +379,7 @@ parseValueWithSchema(schema):
357
379
| StandardSchemaV1Issue []
358
380
` ` `
359
381
360
- Defined in: [packages/form-core/src/FieldApi.ts:1703 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1703 )
382
+ Defined in: [packages/form-core/src/FieldApi.ts:1712 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1712 )
361
383
362
384
Parses the field's value with the given schema and returns
363
385
issues (if any). This method does NOT set any internal errors.
@@ -385,7 +407,7 @@ parseValueWithSchemaAsync(schema): Promise<
385
407
| StandardSchemaV1Issue []>
386
408
` ` `
387
409
388
- Defined in: [packages/form-core/src/FieldApi.ts:1715 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1715 )
410
+ Defined in: [packages/form-core/src/FieldApi.ts:1724 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1724 )
389
411
390
412
Parses the field's value with the given schema and returns
391
413
issues (if any). This method does NOT set any internal errors.
@@ -497,7 +519,7 @@ Replaces a value at the specified index.
497
519
setErrorMap (errorMap ): void
498
520
` ` `
499
521
500
- Defined in: [packages/form-core/src/FieldApi.ts:1678 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1678 )
522
+ Defined in: [packages/form-core/src/FieldApi.ts:1687 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1687 )
501
523
502
524
Updates the field's errorMap
503
525
@@ -622,7 +644,7 @@ Updates the field instance with new options.
622
644
validate (cause , opts ? ): unknown [] | Promise < unknown []>
623
645
` ` `
624
646
625
- Defined in: [packages/form-core/src/FieldApi.ts:1621 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1621 )
647
+ Defined in: [packages/form-core/src/FieldApi.ts:1630 ](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1630 )
626
648
627
649
Validates the field value.
628
650
0 commit comments