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

Allow custom toast types #95

Open
agent0 opened this issue Jan 31, 2018 · 0 comments
Open

Allow custom toast types #95

agent0 opened this issue Jan 31, 2018 · 0 comments

Comments

@agent0
Copy link

agent0 commented Jan 31, 2018

  • I'm submitting a ...
    [ ] bug report
    [X] feature request
    [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug?
    Feature

  • What is the current behavior?
    The creation of toasts is limited to pre-defined types

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.

  • What is the expected behavior?
    I would like to create my own types of toasts

  • What is the motivation / use case for changing the behavior?
    I want to have custom icons for some toasts

  • Please tell us about your environment:

  • Angular version: 5.2.0
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

The easiest way to implement custom types (as far as I understand the code) would be to make the 'add' method in toastyService public. The type that is passed as a parameter is appended directly to the toasts css class and I can easily define my own css for that.

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

1 participant