Options for creating a button control.

interface ButtonControlOptions {
    addClass?: string;
    html?: string | HTMLElement;
    onClick: OnClick;
    title?: string;
}

Properties

addClass?: string

Additional css class string

html?: string | HTMLElement

Button content.

onClick: OnClick

Set an action to execute when button clicked.

title?: string

Button HTMLElement title