2,107 questions
2
votes
1
answer
1k
views
Toast Notification with Scenario of Reminder not staying on screen
I've built a C# Winforms App in which I've included toast notifications. The notifications work fine. However, when I change the ToastScenario to Reminder, the toast does not stay on screen like the ...
0
votes
1
answer
8k
views
How to use Toast Notifications with .Net Maui
I'm trying to show a ToastNotification in a brand new .Net Maui App.
I'm following the instructions from Microsoft about Sending a local toast notification.
I'm able to successfully create one with ...
0
votes
0
answers
398
views
Bootstrap Toast won't show on button click
Using Bootstrap 5, I have the following Toast message placed at the end of my HTML file:
<div class="toast-container position-absolute p-3 top-0 end-0"
style="width: 150px;"&...
2
votes
0
answers
601
views
How to make Material-UI Snackbar appear in center by overriding "VERTICAL"-field of "anchroOriginal"-prop?
Good day, good people!
I want the Material-UI Snackbar component on some pages of my project to pop up in the center of the screen vertically. By default, the Material-UI allows the Snackbar to be ...
0
votes
1
answer
177
views
How to display a Toast MessageDialog in Swift using TableView and TableViewCell
I need to create a toast message dialog in my app, basically i have a TableView and within it i have a TableViewCell. I need that when the user press the cell to go to the DetailViewController the ...
-4
votes
1
answer
967
views
Why Toast is not compatible with Android 28+?
why does standard form Toast (also in current google android online docs)
give "false caller" error for an app in Android compileSdkVersion/targetSdkVersion 28. Using getApplicationContext() ...
0
votes
0
answers
477
views
show toast notification without clicking on a link or button
I don't know how to explain this clearly, the following code notification shows on clicking the link/an href element.
I would like to load it on page load itself, without click, how ?
<a href="...
0
votes
2
answers
545
views
Toast with Django CreateView message How to show
I'm new in Django and I'm creating a CRUD. However I want to show a Success message in a Toast for successfully submit, but I don't know how to do it exactly.
The view class once is inserted, redirect ...
-2
votes
2
answers
675
views
Display a toast after clicking an item in a RecyclerView
If I click on RecyclerView item I should get toast category id.
I've tried many times but I was not able to get a toast.
I'm using api. If I get this toast it will be very simple for me to see id.
...
0
votes
1
answer
1k
views
I want to add a success pop-up in React
I'm trying to add a success pop-up in my login screen but I got 'response is not defined' error.
axios.post('api', formValues)
.then(response => {
if (response === 200) {
...
2
votes
1
answer
1k
views
How to consume a click-event in a Toast-Message?
I made a powershell code that shows a toast-message with a "yes/no" option. Now I am looking for a way to handle that click-event properly. See below the code I have so far:
cls
Remove-...
0
votes
1
answer
349
views
Cannot get BS5 Toast to Autohide
I've just added some toasts to a website I'm working on. They show absolutely fine, exactly when they should do, but they don't autohide. Doesn't seem to matter how I define the properties.
According ...
0
votes
2
answers
6k
views
How can I change text color of antd notification depending upon type?
How can I change text color of antd notification depending upon type. I want red color of notification if type is error and white color for other types. I am able to change background colors depending ...
3
votes
4
answers
4k
views
How to create reusable chakra ui toast
I'm using chakra ui with my next js app.
On some event, I want to show a notification using chakra ui toast, after performing some action.
(For ex. on clicking sign in, I'll send request to backend, ...
0
votes
0
answers
249
views
WPF - Desktop Application - Custom Audio for Toast Notification not working
I have created a C# desktop application using WPF for sending a toast notification. I am using my own custom audio to play when the toast notification gets displayed. I found some problems where my ...
0
votes
1
answer
842
views
Why my toast message not working or displayed in Flutter?
I have a scrollable listView full of quotes, now i want to display a toast message whenever the user scrolled to the bottom of the list. Tight now, I use scroll_edge_listener to detect the scrolling ...
0
votes
0
answers
319
views
windows.ui.notifications API → decrease the time the notification appears on the screen to less than 7 seconds
With this code I can generate my toast notification:
from winsdk.windows.ui.notifications import ToastNotificationManager, ToastNotification, ToastTemplateType
import datetime
def toast_notification(...
2
votes
1
answer
709
views
Android toast message set margin doesn't work
Android toast message set margin is not working. I want to fill horizontal and bottom gravity toast message with 16dp end and start margins. Please help me
custom_toast_message_layout.xml
<...
1
vote
1
answer
633
views
Using sweet alert toast for error handling in vuex
I have installed sweet alert on my project.
Now i want to use it in Vuex actions but it does not work.
update({ commit, dispatch }, data) {
return new Promise(async (resolve, reject) => {
try ...
0
votes
0
answers
1k
views
Ionic 6 (Angular) toast message never show up on the screen
I am currently using browser to test the application. I've implemented the toast message like in the documentation. Although the element is generated on the html when I look in the Elements with z-...
0
votes
1
answer
4k
views
How can I show a toast notification when redirecting due to lack of session using Next-Auth in Next.js? [duplicate]
For example, assume I have a page called internal.tsx that has:
export const getServerSideProps: GetServerSideProps = async (ctx) => {
const session = await getSession(ctx);
if (!session) {
...
1
vote
1
answer
888
views
Toasty does not autoclose or manual close after hook list
I modified the code to generate a toast stack into a ToastContainer dynamically as a notification system. Now the toast do not autoclose even in close button click.
The code can be reproduced by copy ...
0
votes
1
answer
1k
views
How to Prevent Duplication of React Toastify in Functional Components?
When I use React-Toast, It always duplication like the Image.
How prevent the duplication?
Toast Duplication Like This
const Login = () => {
// ========= Loading ============
if (loading) {...
1
vote
0
answers
907
views
Toast not displaying with bootstrap and vue (not bootstrap-vue)
I want to toast as notification to my web app with the help of bootstrap 5 and vue 3 and I'm trying to use template code which is given in the bootstrap official documentation but its not working in ...
1
vote
1
answer
4k
views
show bootstrap toast by calling javascript class method
I would like to show a bootstrap toast by calling something like this:
let my_toast = new myToast('title', 'hello world');
my_toast.show();
So far I am loading the html from an external file myToast....