Represents a combo slot for a combo field.

IComboSlot

interface IComboSlot {
    description?: string;
    dirty: boolean;
    disabled?: boolean;
    fieldReadonly: boolean;
    freeSolo?: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    incorrect: null | string;
    invalid: null | string;
    itemList?:
        | string[]
        | (data: any, payload: any) => string[]
        | (data: any, payload: any) => Promise<string[]>;
    labelShrink?: boolean;
    loading: boolean;
    noDeselect?: boolean;
    onChange: (v: any, config?: { skipReadonly?: boolean }) => void;
    outlined?: boolean;
    placeholder?: string;
    readonly: boolean;
    title?: string;
    tr?:
        | (s: string, data: any, payload: any) => string
        | (s: string, data: any, payload: any) => Promise<string>;
    validation?: IValidation;
    value: any;
    virtualListBox?: boolean;
    watchItemList?: boolean;
    withContextMenu: undefined | true;
}

Hierarchy (View Summary)

Properties

description?: string

Retrieves the "description" property

dirty: boolean
disabled?: boolean

Represents the "disabled" property of a field.

fieldReadonly: boolean
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'>.

incorrect: null | string
invalid: null | string
itemList?:
    | string[]
    | (data: any, payload: any) => string[]
    | (data: any, payload: any) => 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">.

loading: boolean
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.
onChange: (v: any, config?: { skipReadonly?: boolean }) => void
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
title?: string

Retrieves the "title" property for a field

tr?:
    | (s: string, data: any, payload: any) => string
    | (s: string, data: any, payload: any) => 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.

value: any
virtualListBox?: boolean

Represents a virtual list box configuration.

watchItemList?: boolean

Represents the watch item list for a specific field.

withContextMenu: undefined | true