-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Currently, I have this line of code:
toast(title=mail_subject, body=mail_body_first_line, on_click=self.open_email)
I would like to add more functionality by adding buttons.
buttons = [
{'activationType': 'background', 'arguments': 'Lalala', 'content': 'Read summary'}
]
toast(title="Subject", body=mail_body_first_line, on_click=self.open_email, buttons=buttons)
However, there is no documented example of how to run a function when a button is pressed.
Any help will be highly appreciated!
Metadata
Metadata
Assignees
Labels
No labels