add_button_with_target


Description:

public void add_button_with_target (string label, string action, string? target_format, ...)

Adds a button to this that activates action when clicked.

action must be an application-wide action (it must start with "app.").

If target_format is given, it is used to collect remaining positional parameters into a Variant instance, similar to Variant. action will be activated with that Variant as its parameter.

Parameters:

this

a Notification

label

label of the button

action

an action name

target_format

a Variant format string, or null

...

positional parameters, as determined by target_format