hammerspoon2-docs
    Preparing search index...

    Interface HSNotificationAction

    An action button of a notification

    interface HSNotificationAction {
        destructive?: boolean;
        foreground?: boolean;
        identifier: string;
        textInput?: boolean;
        textInputButtonTitle?: string;
        textInputPlaceholder?: string;
        title: string;
    }
    Index
    destructive?: boolean

    Renders the title in a destructive (red) style. Defaults to false

    foreground?: boolean

    Brings Hammerspoon to the foreground when tapped. Defaults to false

    identifier: string

    Unique identifier passed to the callback

    textInput?: boolean

    Converts this action to an inline text-reply button. Defaults to false

    textInputButtonTitle?: string

    Label on the reply send button (requires textInput: true). Defaults to "Send"

    textInputPlaceholder?: string

    Placeholder shown in the text field (requires textInput: true). Defaults to ""

    title: string

    Button label