Trilium Frontend API
    Preparing search index...

    Interface TouchBarButtonConstructorOptions

    interface TouchBarButtonConstructorOptions {
        accessibilityLabel?: string;
        backgroundColor?: string;
        click?: () => void;
        enabled?: boolean;
        icon?: string | NativeImage;
        iconPosition?: "left" | "right" | "overlay";
        label?: string;
    }
    Index

    Properties

    accessibilityLabel?: string

    A short description of the button for use by screenreaders like VoiceOver.

    backgroundColor?: string

    Button background color in hex format, i.e #ABCDEF.

    click?: () => void

    Function to call when the button is clicked.

    enabled?: boolean

    Whether the button is in an enabled state. Default is true.

    icon?: string | NativeImage

    Button icon.

    iconPosition?: "left" | "right" | "overlay"

    Can be left, right or overlay. Defaults to overlay.

    label?: string

    Button text.