system.kanoa.toast.dismiss(paramsDict)
Closes a toast notification by id. Pass an empty dictionary to close every toast on the page.
Parameters
paramsDict Dictionary
| - id | String | Not required. The id of the toast to close, as returned by show. If omitted, every toast on the page is closed. |
| - sessionId | String | The session the toast is in. Required from Gateway scripts. |
| - pageId | String | The page the toast is on. Required from Gateway scripts. |
Returns
Example
toastId = system.kanoa.toast.show({"message": "Working...", "loading": True, "autoClose": 0})
# Close one toast
system.kanoa.toast.dismiss({"id": toastId})
# Close every toast on the page
system.kanoa.toast.dismiss({})