Represents a slot in a tree structure. Extends the interface ITreeBase.

interface ITreeSlot {
    description?: string;
    dirty: boolean;
    disabled: boolean;
    incorrect: null | string;
    invalid: null | string;
    itemTree?:
        | ITreeNode[]
        | (data: any, payload: any) => ITreeNode[]
        | (data: any, payload: any) => Promise<ITreeNode[]>;
    loading: boolean;
    name: string;
    onChange: (v: any, config?: { skipReadonly?: boolean }) => void;
    outlined?: boolean;
    placeholder?: string;
    readonly?: boolean;
    title?: string;
    validation?: IValidation;
    value: any;
    watchItemTree?: boolean;
    withContextMenu: undefined | true;
}

Hierarchy

  • ITreeBase
    • ITreeSlot

Properties

description?: string

Returns the "description" property of a given object.

The type of the object.

The literal key type.

The object from which to extract the property.

The literal key representing the property to extract.

  • The value of the specified property.
dirty: boolean
disabled: boolean

Represents the disabled property of a field in a form.

The type of data stored in the form.

The type of payload used for form submission.

incorrect: null | string
invalid: null | string
itemTree?:
    | ITreeNode[]
    | (data: any, payload: any) => ITreeNode[]
    | (data: any, payload: any) => Promise<ITreeNode[]>

Represents the item tree of a specific field in the data payload.

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

Type declaration for the PickProp utility function.

placeholder?: string

Type definition for the variable placeholder.

The type of data for the field.

The type of payload for the field.

readonly?: boolean

Specifies if a field is readOnly.

The field being checked for readOnly status.

  • A boolean value indicating if the field is readOnly.
title?: string

Type definition for the "title" property picked from the given object type.

The object type that contains the "title" property.

The data type of the "title" property.

The payload type of the "title" property.

The object from which the "title" property will be picked.

  • The resulting object that only contains the "title" property.
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
watchItemTree?: boolean

Represents the change detection flag for item tree

withContextMenu: undefined | true