A button created by the extension.

interface Button {
    onClicked: WebExtEvent<() => void>;
    update?(): void;
    update?(iconPath: string, tooltipText?: string, disabled?: boolean): void;
    update?(tooltipText: string, disabled: boolean): void;
    update?(disabled: boolean): void;
}
Index
onClicked: WebExtEvent<() => void>

Fired when the button is clicked.

Unsupported on Firefox at this time.

  • Updates the attributes of the button. If some of the arguments are omitted or null, the corresponding attributes are not updated.

    Returns void

    Unsupported on Firefox at this time.

  • Updates the attributes of the button. If some of the arguments are omitted or null, the corresponding attributes are not updated.

    Parameters

    • iconPath: string

      Path to the new icon of the button.

    • OptionaltooltipText: string

      Text shown as a tooltip when user hovers the mouse over the button.

    • Optionaldisabled: boolean

      Whether the button is disabled.

    Returns void

    Unsupported on Firefox at this time.

  • Updates the attributes of the button. If some of the arguments are omitted or null, the corresponding attributes are not updated.

    Parameters

    • tooltipText: string

      Text shown as a tooltip when user hovers the mouse over the button.

    • disabled: boolean

      Whether the button is disabled.

    Returns void

    Unsupported on Firefox at this time.

  • Updates the attributes of the button. If some of the arguments are omitted or null, the corresponding attributes are not updated.

    Parameters

    • disabled: boolean

      Whether the button is disabled.

    Returns void

    Unsupported on Firefox at this time.