UIButton defines the configuration for a button UIElement.

This element has no associated value in UIElementValues.

interface UIButton {
    click?: (() => void);
    disabled?: boolean;
    id: string;
    label: string | UIButtonLabel;
    selected?: boolean;
    tooltip?: string;
    type: "button";
}

Hierarchy

Properties

click?: (() => void)

Type declaration

    • (): void
    • click allows to react to click events for an specific button.

      Returns void

disabled?: boolean

disabled defines, if the button is currently disabled.

Default Value

false
id: string
label: string | UIButtonLabel

label defines the button's label.

Deprecated

string type is deprecated. Use UIButtonLabel instead.

selected?: boolean

selected defines, if the button is currently selected or not.

Default Value

false
tooltip?: string

tooltip defines the text that will be displayed in the tooltip.

type: "button"

Generated using TypeDoc