ui.hide_toast

ui.hide_toast(id, *, session=None)

Programmatically hide a toast notification.

Parameters

id : str | Toast

Toast ID (returned by show_toast) or a Toast object with an id.

session : Optional[Session] = None

Shiny session object. If not provided, the session is inferred via get_current_session.

Returns

: str

The toast ID that was hidden.

See Also

Examples

See toast for a complete example, including showing and hiding toast notifications.