Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
Toastr - timeout=0 onclick=function(){} ¿cómo escondo el tostador?

Con el siguiente código (tomado de la página de demostración, con devoluciones de llamada agregadas), aparece mi tostadora y no se agota el tiempo de espera, que es lo que quiero. Luego quiero que el usuario tenga que presionar uno de los botones.

Si hago clic en el fondo, desaparece. Si hago clic en un botón, se devuelve la llamada, pero la tostadora no desaparece.

¿Cómo hago para que desaparezca la tostadora cuando se hace clic en los botones? ¿Cómo hago que la tostada permanezca cuando se hace clic en el fondo?

Además, si hago clic en el fondo, desaparece. ¿Cómo puedo prevenir esto?

 toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-bottom-right", "preventDuplicates": false, "showDuration": "700", "hideDuration": "1000", "timeOut": "0", "extendedTimeOut": "0", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut"}; toastr.options.onShown = function() { console.log('hello'); } toastr.options.onHidden = function() { console.log('goodbye'); } toastr.options.onclick = function(e) { console.log('clicked');console.log(e); } toastr.options.onCloseClick = function() { console.log('close button clicked'); } msg="This is a test<br /><br />"+ "<button type='button' class='btn clear id=Yes'>Yes</button> "+ "<button type='button' class='btn clear id=No'>No</button>"; var TOAST=toastr['error'](msg,"Alert");
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!