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

128
Views
cómo agregar el ícono socmed en el botón sweetalert

Quiero agregar algunos botones para compartir socmed en la notificación emergente sweetalert porque el uso del botón habitual ocupa espacio, pero no sé dónde tengo que colocarlo.

Este es mi dulce código de alerta:

 swal({ title: "Success!", text: "'.Yii::$app->session->getFlash("success").'", icon: "success", closeOnClickOutside: false, closeOnEsc: false, buttons: { hello: { text:"Facebook", className:"btn-primary", value: "hello", visible: true, closeModal: true }, confirm: { text: "Linkedin", className:"btn-primary", value: "confirm", visible: true, closeModal: true }, success: { text:"Whatsapp", className:"btn-success", value:"success", visible: true, closeModal: true }, } }) .then((value) => { if(value == "hello") { window.open("'.$url_facebook.'"); } if(value == "confirm") { window.open("'.$url_linkedin.'"); } if(value == "success") { window.open("'.$url_wa.'"); } });
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!