Skip to content

Added a 'show-forever' mode and added a delay for manually close()#10

Merged
crazycodeboy merged 1 commit into
crazycodeboy:masterfrom
itinance:forever_mode
May 20, 2017
Merged

Added a 'show-forever' mode and added a delay for manually close()#10
crazycodeboy merged 1 commit into
crazycodeboy:masterfrom
itinance:forever_mode

Conversation

@itinance

Copy link
Copy Markdown
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
Copy Markdown
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