Skip to content

SnackbarStack PushAsync Example #1605

Answered by stsrki
bastigerner asked this question in Q&A
Discussion options

You must be logged in to vote

It's pretty simple.

<Button Color="Color.Success" Clicked="@(()=>snackbarStack.PushAsync("Some success message!", "Hello", SnackbarColor.Success, (options) => { options.CloseButtonIcon = IconName.Times; options.ActionButtonText = "OK"; }))">
  Show Success message
</Button>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bastigerner
Comment options

Answer selected by bastigerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants