Documents / @faasjs/ant-design / UnionFaasItemProps
Interface: UnionFaasItemProps<Value, Values>
Combined item props that spans form, description, and table definitions.
Extends
Type Parameters
Value
Value = any
Values
Values = any
Properties
children?
optionalchildren?:UnionFaasItemElement<Value,Values> |null
Generic custom element rendered when no form-specific child overrides it.
Overrides
col?
optionalcol?:number
Number of columns taken by this field in the Ant Design grid.
Inherited from
descriptionChildren?
optionaldescriptionChildren?:UnionFaasItemElement<any> |null
Description-specific custom element.
Inherited from
DescriptionItemProps.descriptionChildren
descriptionRender?
optionaldescriptionRender?:UnionFaasItemRender<any> |null
Description-specific custom render callback.
Inherited from
DescriptionItemProps.descriptionRender
disabled?
optionaldisabled?:boolean
Whether the field is disabled.
Inherited from
extendTypes?
optionalextendTypes?:ExtendTypes
Custom type renderers keyed by item type.
Inherited from
formChildren?
optionalformChildren?:UnionFaasItemElement<any> |null
Form-specific custom element.
Inherited from
formRender?
optionalformRender?:UnionFaasItemRender<any> |null
Form-specific custom render callback.
Inherited from
id
id:
string|number
Inherited from
if?
optionalif?: (values) =>boolean
Conditional visibility predicate. When false, the field is hidden and rendered as a hidden input.
Parameters
values
Record<string, any>
Returns
boolean
Inherited from
input?
optionalinput?:InputProps|RadioProps|InputNumberProps<ValueType> |SwitchProps|DatePickerProps|SelectProps<any,DefaultOptionType>
Props forwarded to the Ant Design input component used for this field.
Inherited from
label?
optionallabel?:string|false
Field label text, or false to hide the label.
Inherited from
maxCount?
optionalmaxCount?:number
Maximum number of entries allowed in a list item.
Inherited from
object?
optionalobject?:UnionFaasItemProps<Value,Values>[]
Nested item definitions used by object and object[] item types.
Overrides
onValueChange?
optionalonValueChange?: (value,values,form) =>void
Called when the field value changes.
Parameters
value
any
values
any
form
FormInstance
Returns
void
Inherited from
options?
optionaloptions?:BaseOption[]
Inherited from
optionsType?
optionaloptionsType?:"auto"
Use built-in option inference for filters when supported.
Inherited from
render?
optionalrender?:UnionFaasItemRender<Value,Values> |null
Generic custom render callback.
Overrides
required?
optionalrequired?:boolean
Whether the field is required. When true, a required validation rule is appended.
Inherited from
rules?
optionalrules?:RuleObject[]
Validation rules appended to the field.
Inherited from
tableChildren?
optionaltableChildren?:UnionFaasItemElement<any> |null
Table-specific custom element.
Inherited from
tableRender?
optionaltableRender?:UnionFaasItemRender<any> |null
Table-specific custom render callback.
Inherited from
title?
optionaltitle?:string
Inherited from
type?
optionaltype?:FaasItemType
Item type that determines which Ant Design control is rendered.