polonel/SnackBar

Unlimited time

isatria opened this issue · 7 comments

Does it support unlimited time appearing until the action button is pressed?

@isatria Yes, setting the duration to 0 or null results in a Snackbar visible until dismissed. The documentation should be updated to reflect this behavior, and maybe even having a property other than duration.

@polonel If you set up a repo for the demo page I can submit a PR to fix this issue. And I'd like to know your opinion in using a different property to make it unlimited. Also we could accept the string 'unlimited' as a valid duration value to have this behavior.

Thank you for responding

Actually I have not implemented this on my project, I just want to know ahead of time if this is capable of handling for needs with appearing cases with unlimited time

but thanks for the offer.

@isatria But still, the documentation doesn't reflect this behaviour and it should be updated. If @polonel agrees and provides a public repo for the demo page I can submit a PR addressing this issue. If not maybe he can change it so as everyone can use that property.

@isatria @aexvir I'll get a repo up to the demo site first chance I get. Thank you for your contributions.

@polonel Please tag me when you have set up the repo. Thanks!