Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFieldClassProps<TName, TValue, TModel>

Describes props for FieldClass

Type parameters

  • TName: keyof TModel

  • TValue: TModel[TName]

  • TModel

Hierarchy

  • IFieldClassProps

Index

Properties

Optional children

children: function | React.ReactNode

Accepts (context: FieldModelContext<TModel>) => React.ReactNode function or React.ReactNode if children is React.ReactNode then pass FieldModelContext via FieldContext

formState

formState: IFormState<TModel>

Form context

isChanged

isChanged: boolean

isValid

isValid: boolean

isVisited

isVisited: boolean

name

name: TName

Field name

Optional onChange

onChange: function

Change Form event handler

Type declaration

    • Parameters

      Returns any

Optional onClick

onClick: function

Click event handler

Type declaration

    • (): any
    • Returns any

rest

rest: object

Rest passed to Field

Type declaration

  • [key: string]: any

validationErrors

validationErrors: Array<IErrorMessage<any>>

Validation errors from Validation context

validationScope

validationScope: Array<IErrorMessage<any>>

Form scope Validation errors from Validation context

value

value: TValue

Value of FieldClass

Generated using TypeDoc