Represents a date slot.

IDateSlot

interface IDateSlot {
    autoFocus?: boolean;
    description?: string;
    dirty: boolean;
    disabled: boolean;
    incorrect: null | string;
    inputRef?: (element?: null | HTMLInputElement) => void;
    invalid: null | string;
    labelShrink?: boolean;
    name: string;
    onChange: (v: any, config?: { skipReadonly?: boolean }) => void;
    outlined?: boolean;
    placeholder?: string;
    readonly?: boolean;
    title?: string;
    validation?: IValidation;
    value: any;
    withContextMenu: undefined | true;
}

Hierarchy

  • IDateBase
    • IDateSlot

Properties

autoFocus?: boolean

Represents the autoFocus property of a field.

description?: string

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

The input field object.

  • The value of the "description" property.
dirty: boolean
disabled: boolean

Represents the disabled property of a field.

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

Represents an optional reference to the input element within a field.

invalid: null | string
labelShrink?: boolean

Shrink the label of a field.

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

Picks the 'outlined' property from the IField<Data, Payload> object.

The type of data in the IField object.

The type of payload in the IField object.

The IField object to pick the 'outlined' property from.

  • The 'outlined' property value.
placeholder?: string

Represents the placeholder property of a field.

The type of the field's data.

The type of the field's payload.

The specific property of the field.

readonly?: boolean

Retrieves the value of the readonly property from a given field object.

The data type of the field.

The payload that may be associated with the field.

The field object from which to retrieve the readonly property.

  • The value of the readonly property, or undefined if the property is not present.
title?: string

Retrieves the value of the "title" property from the given object.

The type of the object.

The keys of the object.

The object from which to retrieve the property value.

The key of the property to retrieve.

  • The value of 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
withContextMenu: undefined | true