Skip to main content

Interface: FormContext

Properties

fields

fields: any

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:95


labelWidth

Optional labelWidth: FormLabelWidth

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:103


layout

Optional layout: FormLayout

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:104


submittingRef

submittingRef: MutableRefObject<boolean>

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:121


validationsRef

validationsRef: MutableRefObject<AnonymousObject<FieldValidation>>

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:123


valuesRef

valuesRef: MutableRefObject<any>

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:122

Methods

add

add(fieldArrayName, initialValue?): void

Parameters

NameType
fieldArrayNamestring
initialValue?any

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:93


clearValidation

clearValidation(fieldName, validatorName, code): void

Parameters

NameType
fieldNamestring
validatorNamestring
codeValidationCode

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:94


getContainerFieldValidation

getContainerFieldValidation(validations, fields, prefix?, touchedOnly?): ContainerValidation

Parameters

NameType
validationsAnonymousObject<FieldValidation>
fieldsAnonymousObject<Field>
prefix?string
touchedOnly?boolean

Returns

ContainerValidation

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:97


init

init(name, validators?, fieldOptions?): FieldProps

Parameters

NameType
namestring
validators?Validator[]
fieldOptions?FieldOptions

Returns

FieldProps

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:96


offSubmittingChange

offSubmittingChange(listener): void

Parameters

NameType
listenerFormListener

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:105


offValidationChange

offValidationChange(listener, watchs): void

Parameters

NameType
listenerFormListener
watchsstring | string[]

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:106


offValueChange

offValueChange(listener, watchs): void

Parameters

NameType
listenerFormListener
watchsstring | string[]

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:107


onSubmittingChange

onSubmittingChange(listener, once?): void

Parameters

NameType
listenerFormListener
once?boolean

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:108


onValidationChange

onValidationChange(listener, watchs, once?): void

Parameters

NameType
listenerFormListener
watchsstring | string[]
once?boolean

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:109


onValueChange

onValueChange(listener, watchs, once?): void

Parameters

NameType
listenerFormListener
watchsstring | string[]
once?boolean

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:110


remove

remove(fieldArrayName, index): void

Parameters

NameType
fieldArrayNamestring
indexnumber

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:111


reset

reset(): void

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:112


setError

setError(fieldName, validatorName, message?, match?): boolean

Parameters

NameType
fieldNamestring
validatorNamestring
message?string
match?boolean

Returns

boolean

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:113


setOK

setOK(fieldName, validatorName): boolean

Parameters

NameType
fieldNamestring
validatorNamestring

Returns

boolean

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:114


setPendingValidation

setPendingValidation(fieldName, validatorName, pending?): boolean

Parameters

NameType
fieldNamestring
validatorNamestring
pending?any

Returns

boolean

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:115


setValidation

setValidation(fieldName, validatorName, code, message?): void

Parameters

NameType
fieldNamestring
validatorNamestring
codeValidationCode
message?string

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:116


setValue

setValue(fieldName, value): void

Parameters

NameType
fieldNamestring
valueany

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:117


setValues

setValues(values): void

Parameters

NameType
valuesAnonymousObject<any>

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:118


setWarning

setWarning(fieldName, validatorName, message?, match?): boolean

Parameters

NameType
fieldNamestring
validatorNamestring
message?string
match?boolean

Returns

boolean

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:119


submit

submit(e?): void

Parameters

NameType
e?SyntheticEvent<Element, Event>

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/form/typings.ts:120