If they’re asking for in-browser toasts, I believe we have that planned for this quarter.
But if they want desktop notifications, that’s not scheduled yet.
But a component could easily do it!
Just wanted to share some potential features for notification toasts, which I know are somewhere down the roadmap. Just some thoughts in case they are helpful.
Adding a “close” or “X” button so users can dismiss the notification after reading it.
Setting height, width, and position (center of screen, top-left, top-right, bottom-left, bottom-right) of the notification toast.
Adding to the body of the notification toast not only text, but also a url (e.g., to link to a privacy policy document) or even injecting some html.
Choosing if the app in the background is greyed out / disabled or not, when the notification toast shows up.
Hi @marduk ,
Any code snippet on setting the height width and position for the pop up would be really helpfu;.
I am unable to find the documentation of ToastNotifier().
Notification toasts are not available yet in Streamlit as a native component; in my previous message I was just sharing some ideas for the dev team to consider.
If you don’t want to wait for the Streamlit-native notification toasts, @Shawn_Pereira kindly pointed us to a custom component someone built:
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.