Closed uzumakinaruto123 closed 8 years ago
Set the timeout equals 0
or null
to prevent autoclose in ToastOptions or ToastConfig:
var toastOptions:ToastOptions = {
title: "My title",
msg: "The message",
showClose: true,
timeout: null, // <!-- Here is your changes
theme: 'default',
onAdd: (toast:ToastData) => {
console.log('Toast ' + toast.id + ' has been added!');
},
onRemove: function(toast:ToastData) {
console.log('Toast ' + toast.id + ' has been removed!');
}
};
Do you want to request a feature or report a bug?
Feature to prevent auto close of the toast. That is making it timeout independent. which cant be closed until user clicks 'close' or its closed programmatically.
plus
It would be great if we could change lines within error message. escape character '\n'
What is the current behavior?
Currently , to prevent auto close , we need to set very large timeout. like random 50000. that can be closed programmatically whenever needed.
0
, it should prevent close untill user clicks close/programmatically.Displaying validation errors in a toast. which should stay active until user notices/reads them. and multiple validation errors on multiple lines.