Skip to main content

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

- idStringNot required. The id of the toast to close, as returned by show. If omitted, every toast on the page is closed.
- sessionIdStringThe session the toast is in. Required from Gateway scripts.
- pageIdStringThe 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({})