Interface representing props for the ButtonField component.

interface IButtonFieldProps<Data = IAnything, Payload = IAnything> {
    buttonColor?:
        | "error"
        | "inherit"
        | "primary"
        | "secondary"
        | "success"
        | "info"
        | "warning";
    buttonSize?: "small"
    | "medium"
    | "large";
    buttonVariant?: "outlined" | "text" | "contained";
    disabled?: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    icon?: any;
    placeholder?: string;
    title?: string;
}

Type Parameters

  • Data = IAnything

    The type of data for the field.

  • Payload = IAnything

    The type of payload for the field.

Hierarchy (View Summary)

Properties

buttonColor?:
    | "error"
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "info"
    | "warning"

Retrieves the 'buttonSize' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
buttonSize?: "small" | "medium" | "large"

Retrieves the 'buttonSize' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
buttonVariant?: "outlined" | "text" | "contained"

Retrieves the 'buttonVariant' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
disabled?: boolean

Represents the "disabled" property of a field in the given data payload.

The type of the data payload.

The type of the payload object.

The value of the "disabled" property.

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

Represents the optional property groupRef from the IField interface. The groupRef property is a subset of the PickProp type with the 'groupRef' key.

icon?: any

Retrieves the 'icon' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
placeholder?: string

Retrieves the 'placeholder' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
title?: string

Retrieves the 'title' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.