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

124
Views
how to add icon socmed in button sweetalert

I want to add some buttons share socmed in pop up notification sweetalert because using usual button take up space, but i don't know where i have to place it.

This is my sweet alert code:

    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!