-
Notifications
You must be signed in to change notification settings - Fork 358
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 a couple of new options #898
base: master
Are you sure you want to change the base?
Conversation
src/lib/toastr/toast.component.ts
Outdated
@@ -47,7 +50,7 @@ import { ToastrService } from './toastr.service'; | |||
), | |||
transition( | |||
'active => removed', | |||
animate('{{ easeTime }}ms {{ easing }}') | |||
animate('{{ hideEasingTime }}ms {{ hideEasing }}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is a breaking change since anyone that has set the easeTime would now get the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should keep the names similar hideEaseTime
1. HTML for the close button 2. Options for selecting the type of ease (one for showing and one for hiding) 3. Options to configure the ease time (in and out) The new hideEaseTime property is only used if it's defined, otherwise a fallback to easeTime is done so that there is no breaking change.
cd3fc87
to
91e5555
Compare
I fixed that breaking change by adding a fallback to the easeTime property if the new hideEaseTime property is not defined. Thus, there is no breaking change any more. |
can this pull request be integrated? |
Added a couple of new options
hiding)
I added these options in the demo example as well, please check them out.
Feel free to change the namings as you wish.