Represents the interface for choosing a time slot.

interface IChooseSlot {
    choose?: (
        data: any,
        payload: any,
    ) => null | string | string[] | Promise<null | string | string[]>;
    description?: string;
    dirty: boolean;
    disabled: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    incorrect: null | string;
    inputRef?: (element?: null | HTMLInputElement) => void;
    invalid: null | string;
    labelShrink?: boolean;
    loading: boolean;
    name: string;
    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;
    withContextMenu: undefined | true;
}

Hierarchy

  • IChooseBase
    • IChooseSlot

Properties

choose?: (
    data: any,
    payload: any,
) => null | string | string[] | Promise<null | string | string[]>

Type definition for the 'choose' property of IField.

description?: string

Retrieves the "description" property from the given object.

Type representing the field object.

Type representing the data object.

Type representing the payload object.

The object from which to pick the "description" property.

The value of the "description" property.

dirty: boolean
disabled: boolean

Type definition for the "disabled" property of a field.

This type is used to define the "disabled" property of a field from an object type "Data" and a type "Payload" using the PickProp utility type.

The type representing the object structure.

The type representing the additional properties of the field.

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

A reference to the group that the field belongs to.

incorrect: null | string
inputRef?: (element?: null | HTMLInputElement) => void

This variable represents the inputRef property of type PickProp<IField<Data, Payload>, 'inputRef'>. It is an optional property, which means it may be undefined.

invalid: null | string
labelShrink?: boolean

Represents the configuration for label shrinking in a field.

loading: boolean
name: string
onChange: (v: any, config?: { skipReadonly?: boolean }) => void
outlined?: boolean

Type definition for the PickProp function.

The type of the object to pick properties from.

The keys to pick from the object.

placeholder?: string

Type definition for a generic placeholder value.

readonly?: boolean

A variable that represents the readonly property of a field.

title?: string

Type definition for the title property when using PickProp utility.

The type of the object from which to pick the property.

The name of the property to pick.

The object from which to pick the property.

The name of the property to pick.

  • The picked property value.
tr?:
    | (s: string, data: any, payload: any) => string
    | (s: string, data: any, payload: any) => Promise<string>

Represents a possible translation for a field in a form.

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
withContextMenu: undefined | true