BaseButton options.

interface IButtonOptions {
    clickHandler: (ev: any) => Promise<any>;
    disableOnClick?: boolean;
    icon?: string;
    label?: string;
    toggleButton?: boolean;
    type?: auto;
    vibrationFeedback?: boolean;
}

Hierarchy (View Summary)

Properties

clickHandler: (ev: any) => Promise<any>

A function that gets called when the button was clicked. Must return a Promise

disableOnClick?: boolean

If set to true, the button gets disabled when clicked

icon?: string

The icon of the button. if omitted no icon gets printed

label?: string

The label of the button. If omitted no label gets printed.

toggleButton?: boolean

Toggles the state of the button.

type?: auto
vibrationFeedback?: boolean

If set to true, the device vibrates on a button click (only on devices/platforms that supports vibration).