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 a 'show-forever' mode and added a delay for manually close() #10

Merged
merged 1 commit into from
May 20, 2017

Conversation

itinance
Copy link
Contributor

This PR adds the feature to show a Toast forever until a separate call to "close"-method.
If the modal is shown "forever", a slightly delay of 250 ms was added to the close()-method to avoid flickering effekt if the close()-call comes very fast. This special delay can be changed as a parameter to the close method and also as a prop to the toast-component

I've provided also a README-section for "forever"-mode with example code for further information.

This PR is backward compatible and will not break anything.

@itinance itinance mentioned this pull request May 19, 2017
@crazycodeboy crazycodeboy merged commit aa0ea72 into crazycodeboy:master May 20, 2017
@crazycodeboy
Copy link
Owner

Thanks,you can use these features in the 1.0.6 version。

@itinance itinance deleted the forever_mode branch May 20, 2017 15:43
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.

2 participants