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

added info and warning types #94

Closed
wants to merge 2 commits into from
Closed

added info and warning types #94

wants to merge 2 commits into from

Conversation

Zaffer
Copy link

@Zaffer Zaffer commented Dec 30, 2020

Please add just the 4 basic types of toaster? This is the default clasess:

  • warning
  • info
  • success
  • error

Then I can use this code and do clean replacement of the toastr.js plugin I was using 😁

@Zaffer Zaffer changed the title added info and warning types everywhere added info and warning types Dec 30, 2020
@caroso1222
Copy link
Owner

Thanks for this contribution! I'm sorry for the late reply, it's been a hectic year for me.

I'll add my comments asap, thanks again!

Copy link
Owner

@caroso1222 caroso1222 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the time on this!

src/notyf.scss Outdated Show resolved Hide resolved
@@ -47,6 +47,16 @@ export default class Notyf {
return this.open(options);
}

public info(payload: string | Partial<INotyfNotificationOptions>) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add tests for these new features?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try to add tests. I am a still learning how to code...

@Zaffer Zaffer closed this by deleting the head repository Mar 26, 2023
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.

None yet

3 participants