Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Can i make alert show 3 Buttons ? #484

Closed
ahmedamen opened this issue Nov 28, 2015 · 11 comments
Closed

How Can i make alert show 3 Buttons ? #484

ahmedamen opened this issue Nov 28, 2015 · 11 comments

Comments

@ahmedamen
Copy link

Hi
first: thanks for this amazing alert

i can make it show 2 buttons as:

            swal({
                     title: "تم حفظ الطبيب برقم " + data.data.DoctorID,
                     text: "هل تريد إضافة طبيب أخر ؟",
                     type: "warning",
                     showCancelButton: true,
                     confirmButtonColor: "#DD6B55",
                     confirmButtonText: "نعم",
                     cancelButtonText: "لا",

                     closeOnConfirm: false,
                     closeOnCancel: false
                 }, function (isConfirm) {
                     if (isConfirm) {
                         window.location.href = '/Doctors/Add';
                     } else {
                         window.location.href = '/';
                     }
                 });

now i need to got 3 buttons not 2 as i did before - so please how can i get that ?

hope to get help soon

thanks a lot ...

@nkalupahana
Copy link

+1 I would like this feature as well. (Hoping to get more popularity to get it in the next update)

@ChadTaljaardt
Copy link

👍

5 similar comments
@zamboney
Copy link

👍

@steven10172
Copy link

+1

@mandadimuralidharreddy
Copy link

+1

@ravidorr
Copy link

+1

@lucrus
Copy link

lucrus commented Jan 10, 2017

+1

@paivaric
Copy link

paivaric commented Feb 9, 2017

@tarcisioq
Copy link

+1

@alwinkpc
Copy link

This is third party sollution

@t4t5
Copy link
Owner

t4t5 commented Sep 8, 2017

In SweetAlert 2.0, you can finally have 3 buttons! Yay (only took ~ 3 years, but the solution is very clean)!

Check out the new docs page

@t4t5 t4t5 closed this as completed Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests