Skip to content

Allow MatSnackBarRef to be closed with an ActionValue #23660

@angelaki

Description

@angelaki

Currently the Snackbar can only be dismiss'ed or dismissWithAction'ed. And the action cannot be passed! So if I have more than one action I need to store the result in a static scope (or am I mistaken?). Wouldn't it make much more sense to just have a dismiss-method with an optional value parameter? Like the MatDialog has?

This dismiss / dismissWithAction thing really feels dusty ...

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/snack-barfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions