Represents the properties for the ComboField component.

interface IComboFieldProps<Data = IAnything, Payload = IAnything> {
    description?: string;
    disabled?: boolean;
    freeSolo?: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    itemList?:
        | string[]
        | (data: Data, payload: Payload) => string[]
        | (data: Data, payload: Payload) => Promise<string[]>;
    labelShrink?: boolean;
    noDeselect?: boolean;
    outlined?: boolean;
    placeholder?: string;
    readonly?: boolean;
    title?: string;
    tr?:
        | (s: string, data: Data, payload: Payload) => string
        | (s: string, data: Data, payload: Payload) => Promise<string>;
    validation?: IValidation;
    virtualListBox?: boolean;
    watchItemList?: boolean;
}

Type Parameters

  • Data = IAnything

    The type of data associated with the field.

  • Payload = IAnything

    The type of payload associated with the field.

Properties

description?: string

Retrieves the "description" property

disabled?: boolean

Represents the "disabled" property of a field.

freeSolo?: boolean

Represents the freeSolo property of an object.

groupRef?: (element?: null | HTMLDivElement) => void

This variable represents a reference to a group within a field's data payload. It is an optional property and is of type PickProp<IField<Data, Payload>, 'groupRef'>.

itemList?:
    | string[]
    | (data: Data, payload: Payload) => string[]
    | (data: Data, payload: Payload) => Promise<string[]>

Represents a list of items from a specific field's data payload.

labelShrink?: boolean

Represents the property labelShrink which is an optional pick property of type PickProp<IField<Data>, "labelShrink">.

noDeselect?: boolean

Specifies whether the field should allow deselection.

The data type of the field.

The payload type of the field.

The value of the noDeselect property.

  • This function does not return any value.
outlined?: boolean

Type outlined defenition

The type of the input object.

The name of the property to pick from the input object.

placeholder?: string

Represents the placeholder property of a field.

The type of data associated with the field.

The type of payload associated with the field.

readonly?: boolean

Retrieves the "readonly" property from a given object of type IField<Data, Payload>.

The object from which to retrieve the "readonly" property.

The value of the "readonly" property.

title?: string

Retrieves the "title" property for a field

tr?:
    | (s: string, data: Data, payload: Payload) => string
    | (s: string, data: Data, payload: Payload) => Promise<string>

Represents an optional property "tr" of type PickProp<IField<Data, Payload>, "tr">.

validation?: IValidation

Validation factory config

Type representing the field object.

Type representing the data object.

Type representing the payload object.

The value of the "validation" property.

virtualListBox?: boolean

Represents a virtual list box configuration.

watchItemList?: boolean

Represents the watch item list for a specific field.