Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

When click Dismiss, how to Ajax ? #18

Closed
guimafx opened this issue Jun 7, 2019 · 5 comments
Closed

When click Dismiss, how to Ajax ? #18

guimafx opened this issue Jun 7, 2019 · 5 comments
Labels
question This issue is a question

Comments

@guimafx
Copy link

guimafx commented Jun 7, 2019

Hello Guys,
Please, how can i make ajax request, when user click @ DISMISS btn ?
I should use that make the notification read by the user.
Thanks !
Guilherme

@MattIPv4
Copy link
Owner

MattIPv4 commented Jun 7, 2019

Hey @guimafx,

Looks like I've missed this in the documentation, sorry!
You can set btn1Link or btn2Link to be a function instead of a string URL, which will act as a JavaScript callback when clicked :)

Hope that helps, let me know if you need anything further!

@MattIPv4 MattIPv4 added the question This issue is a question label Jun 7, 2019
@MattIPv4
Copy link
Owner

MattIPv4 commented Jun 8, 2019

Now documented fully on the site (#19)!

@MattIPv4 MattIPv4 closed this as completed Jun 8, 2019
@guimafx
Copy link
Author

guimafx commented Jun 10, 2019

Thanks buddy ! if you have some sample, would be perfect !!!

{{{ i confess i need to improve some JS skills }}}

@MattIPv4
Copy link
Owner

@MattIPv4 Sure, take a look at https://macosnotif.js.org/docs/macosnotif/0.1.1/#button-configuration and the javascript callback button example.

@guimafx
Copy link
Author

guimafx commented Jun 12, 2019

yeah, worked fine. thanks !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants