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

Clickable notification #3

Merged
merged 2 commits into from
Feb 23, 2021
Merged

Clickable notification #3

merged 2 commits into from
Feb 23, 2021

Conversation

HijenHEK
Copy link
Owner

adding link option accepts either a string or an array

  • string of the url , example :

        new Notilert({content : "google" , link : "http://google.com" })

    since this has no option , default behavior is to open in the same window

  • array has two items a string and a boolean
    -- the string is for the link
    -- the link target is set to _blank if the boolean is true (default is false)

    example :

        new Notilert({content : "google" , link : ["http://google.com" , true]})

@HijenHEK HijenHEK merged commit 84dde3f into main Feb 23, 2021
@HijenHEK HijenHEK deleted the clickable-notification branch February 23, 2021 15:48
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

Successfully merging this pull request may close these issues.

1 participant