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

Enable type specific default options #574

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jwschram
Copy link

@jwschram jwschram commented Jun 2, 2018

Enables users to create type-specific override options during initial toastr configuration while maintaining the hierarchy of option inheritance.

This is the patch associated with issue #571

This is not a breaking change but I haven't documented it until it's accepted.

jangajack and others added 2 commits June 2, 2018 12:53
added a feature to include message type specific overrides so that each message of a specific type can have a different default set of options. This supports the same set of options that optionsOverride supports.
…e options hierarchy.

-- uses new options object property typeBasedOverrides where typeBasedOverrides is an object
   with child objects of each type that accept the same parameters as overrideOptions

options = {
  typeBasedOverrides: {
    info: {},
    success: {},
    warning: {},
    error: {}
  }

see CodeSeven#571
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

1 participant