-
-
Save ntacheva/72a7771ebccd184967e6503902b911ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TestComponent Id="123"></TestComponent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TelerikButton OnClick="@ShowAlert">Show Alert</TelerikButton> | |
<TelerikButton OnClick="@ShowAlertWithTitle">Show Alert with Custom Title</TelerikButton> | |
@code { | |
[Parameter] | |
public int Id { get; set; } | |
protected override async Task OnParametersSetAsync() | |
{ | |
Console.WriteLine(Id); | |
} | |
[CascadingParameter] | |
public DialogFactory Dialogs { get; set; } | |
public async Task ShowAlert() | |
{ | |
await Dialogs.AlertAsync("Something went wrong!"); | |
Console.WriteLine("The user dismissed the alert box."); | |
} | |
async Task ShowAlertWithTitle() | |
{ | |
await Dialogs.AlertAsync("Something went wrong!", "Read this!"); | |
Console.WriteLine("The user dismissed the alert box with the custom title."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment