Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
55
rated 0 times [  59] [ 4]  / answers: 1 / hits: 16104  / 10 Years ago, thu, june 26, 2014, 12:00:00

I am trying to setup Toastr js to become sortof a dialog button.



All i need is an Approve and a Disaprove button on my Toastr message



toastr.options = {
closeButton: true,
debug: false,
positionClass: toast-bottom-left,
onclick: null,
showDuration: 1000,
hideDuration: 1000,
timeOut: 5000,
extendedTimeOut: 1000,
showEasing: swing,
hideEasing: linear,
showMethod: fadeIn,
hideMethod: fadeOut
}
toastr.info(Do you wish to continue);


Does anyone know if that is possible or know any other script that allows me to?



Please note



I know this can be done with Modal but i want to try and avoid it.


More From » dialog

 Answers
114

Sure. You can add any HTML you want to the toast then hook up event handlers to it. See the demo for more details and examples. http://codeseven.github.io/toastr/demo.html


[#70420] Tuesday, June 24, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaydon

Total Points: 651
Total Questions: 103
Total Answers: 100

Location: Norway
Member since Mon, May 23, 2022
2 Years ago
;