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

Add a tooltip on buttons #466

Closed
Hizoka76 opened this issue Mar 6, 2019 · 2 comments
Closed

Add a tooltip on buttons #466

Hizoka76 opened this issue Mar 6, 2019 · 2 comments

Comments

@Hizoka76
Copy link

Hizoka76 commented Mar 6, 2019

jquery-confirm version:
v3.x.x

I'm submitting a ... (check one with "x")
[ ] bug report
[X] feature request
[ ] support request

Current behavior:
Is it possible to add a tooltip on the buttons ?
This allows you to specify the action of the button, for example...
Thank you !

@boily
Copy link

boily commented Apr 8, 2020

Just add
.prop('title', that.buttons[key].title)
after
.prop('disabled', that.buttons[key].isDisabled)
at about line 697 of the code

and add a title property to the button:

buttons: { confirm: { title: "Click here to confirm", btnClass: "btn-blue", action: function(){ $.alert("confirmed"); } },

@Hizoka76
Copy link
Author

Hizoka76 commented Jun 8, 2020

Thank you ! :)

@Hizoka76 Hizoka76 closed this as completed Jun 8, 2020
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

2 participants