mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
19 lines
678 B
Plaintext
19 lines
678 B
Plaintext
@inject DialogService DialogService
|
|
|
|
<div class="rz-p-12 rz-text-align-center">
|
|
<RadzenButton Text="Alert dialog" ButtonStyle="ButtonStyle.Secondary"
|
|
Click=@(args => DialogService.Alert("Some message!", "MyTitle", new AlertOptions() { OkButtonText = "Yes" })) />
|
|
<RadzenButton Text="Alert dialog with markup" ButtonStyle="ButtonStyle.Secondary"
|
|
Click=@(args => DialogService.Alert(GetMessage(), "MyTitle", new AlertOptions() { OkButtonText = "Yes" })) />
|
|
</div>
|
|
@code {
|
|
RenderFragment GetMessage()
|
|
{
|
|
return __builder =>
|
|
{
|
|
<text>
|
|
Some <b>message</b>!
|
|
</text>
|
|
};
|
|
}
|
|
} |