Represents a Yes/No slot.

IYesNoSlot

interface IYesNoSlot {
    description?: string;
    dirty: boolean;
    disabled?: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    incorrect: null | string;
    invalid: null | string;
    labelShrink?: 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;
}

Hierarchy (View Summary)

Properties

description?: string

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

The type of the data associated with the field.

The type of the payload associated with the field.

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

  • The picked "description" property.
dirty: boolean
disabled?: boolean

Represents the disabled property of a field object.

The type of data associated with the field.

The type of payload associated with the field.

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

Represents the groupRef property of an object.

incorrect: null | string
invalid: null | string
labelShrink?: boolean

Represents the optional property to shrink the label of a field.

noDeselect?: boolean

Represents an optional property "noDeselect" of a PickProp object.

The type of the field.

The key of the property to be picked.

The type of the value of the picked property.

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

Type declaration for the outlined property of the PickProp utility. This utility allows you to pick a specific property from a given type and create a new type with only that property.

The original type from which we want to pick a property.

A string literal representing the property we want to pick from the original type.

placeholder?: string

Retrieves the "placeholder" property of the provided PickProp type, which is a property value of type string.

The type of data associated with the field.

The type of payload associated with the field.

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

The type of the property to be picked.

The input object from which to pick the property.

The property to be picked from the input object.

The value of the "placeholder" property of the provided PickProp type.

readonly: boolean
title?: string

Returns the value of the "title" property from an object of type IField<Data, Payload>.

The type of the data object.

The type of the payload object.

The type of the object containing the "title" property.

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

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

Represents the "tr" property of an object.

IField - Represents the object type containing the "tr" 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
virtualListBox?: boolean

Represents the configuration options for a virtual list box component.