Duration is missing from MdSnackBar
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
According to docs, there should be a duration
property in MdSnackBarConfig
type
What is the current behavior?
There is not a duration
property in MdSnackBarConfig
Throws:
Argument of type '{ duration: number; }' is not assignable to parameter of type 'MdSnackBarConfig'.
Object literal may only specify known properties, and 'duration' does not exist in type 'MdSnackBarConfig'.
What are the steps to reproduce?
Try to add a duration
property to the configuration object when open a SnackBar.
Which versions of Angular, Material, OS, browsers are affected?
Angular: 2.2.1 Material: alpha-10 OS: Windows 10 AU
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Duration is missing from MdSnackBar · Issue #2020 - GitHub
Try to add a duration property to the configuration object when open a SnackBar. Which versions of Angular, Material, OS, browsers are affected?...
Read more >How can I set duration of a snack-bar in angular2 (material2)
With angular material 2.0.0-alpha.11, You can now add timeout to snackbar. open() { let config = new MdSnackBarConfig(); config.duration ...
Read more >Snackbars - Material Design
Only one snackbar may be displayed at a time. ... Snackbars appear temporarily, and disappear on their own without requiring user input to...
Read more >angular/material2 - Gitter
Has anyone got snackbars working from inside of a route resolver? I have routes that are defined as follows: export const ROUTES: Routes...
Read more >Snackbar | Angular Material
A snackbar can contain a single action with an additional optional "dismiss" or "cancel" action. Avoid setting a duration for snackbars that have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Temporary workaround:
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.