Documents / @faasjs/ant-design / FormItemProps

Interface: FormItemProps<T>

Extends

  • FaasItemProps.Omit<AntdFormItemProps<T>, "id" | "children" | "render">

Type parameters

T = any

Properties

children?

optional children: UnionFaasItemElement<T>

col?

optional col: number

disabled?

optional disabled: boolean

extendTypes?

optional extendTypes: ExtendTypes

formChildren?

optional formChildren: UnionFaasItemElement<T>

formRender?

optional formRender: UnionFaasItemRender<T>

id

id: string

Inherited from

FaasItemProps.id

if()?

optional if: (values) => boolean

trigger when any item's value changed

Parameters

values: Record<string, any>

Returns

boolean

input?

optional input: InputProps | InputNumberProps<ValueType> | SwitchProps | SelectProps<T, DefaultOptionType> | DatePickerProps

label?

optional label: string | false

Overrides

Omit.label

maxCount?

optional maxCount: number

object?

optional object: FormItemProps<any>[]

onValueChange()?

optional onValueChange: (value, values, form) => void

trigger when current item's value changed

Parameters

value: T

values: any

form: FormInstance<any>

Returns

void

options?

optional options: BaseOption[]

Inherited from

FaasItemProps.options

render?

optional render: UnionFaasItemRender<T>

required?

optional required: boolean

Overrides

Omit.required

rules?

optional rules: RuleObject[]

Overrides

Omit.rules

title?

optional title: string

Inherited from

FaasItemProps.title

type?

optional type: FaasItemType

Support string, string[], number, number[], boolean, date, time, object, object[]

Default

'string'

Inherited from

FaasItemProps.type