A set of properties for the TimeField component.

interface ITimeFieldProps<Data = IAnything, Payload = IAnything> {
    autoFocus?: boolean;
    description?: string;
    disabled?: boolean;
    inputRef?: (element?: null | HTMLInputElement) => void;
    labelShrink?: boolean;
    outlined?: boolean;
    placeholder?: string;
    readonly?: boolean;
    title?: string;
    validation?: IValidation;
}

Type Parameters

  • Data = IAnything

    The type of data expected to be stored in the field.

  • Payload = IAnything

    The type of payload expected to be returned on field change.

Properties

autoFocus?: boolean

Represents the "autoFocus" property of a field.

description?: string

Returns the "description" property value of the given object. The object must be of type IField<Data, Payload>.

The object to pick the "description" property from.

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

Retrieves the "disabled" property from an object of type IField<Data, Payload>.

The type of data associated with the field.

The type of payload associated with the field.

The object from which to retrieve the "disabled" property.

  • The value of the "disabled" property.
inputRef?: (element?: null | HTMLInputElement) => void

Represents a reference to an input element.

labelShrink?: boolean

Represents the shrink property of the label in a field.

outlined?: boolean

Returns the value of the "outlined" property for the given field.

The type of data consumed by the field.

The type of payload.

The field to pick the "outlined" property from.

The value of the "outlined" property.

placeholder?: string

Retrieves the placeholder property from an object IField<Data, Payload>.

The type of data for the field.

The type of payload.

The field object from which to retrieve the placeholder property.

  • The placeholder property of the field object.
readonly?: boolean

Retrieves the value of the "readonly" property from a given object that has a specific structure.

The input object with a specific structure.

The value of the "readonly" property from the input object.

title?: string

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

The type of the object.

The key of the property to be picked.

The object from which to pick the property.

The key of the property to pick.

  • The value of the picked 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.