Gio.Notification.prototype.add_button

function add_button(label: String, detailed_action: String): void {
    // Gjs wrapper for g_notification_add_button()
}
  

Adds a button to notification that activates the action in detailed_action when clicked. That action must be an application-wide action (starting with "app."). If detailed_action contains a target, the action will be activated with that target as its parameter.

See Gio.action_parse_detailed_name for a description of the format for detailed_action.

Since 2.40

label

label of the button

detailed_action

a detailed action name