Skip to content
OVERLAYS · FREE

Popconfirm

Popconfirm is part of RayCraft Free.

Example

<Stack Align="center">
    <Popconfirm Title="Delete this record?" Text="It cannot be restored." Severity="Severity.Error" ConfirmText="Delete" OnConfirm="Deleted" OnCancel="Kept">
        <Activator><Button Color="ButtonColor.Danger" Variant="Variant.Outlined" StartIcon="IconName.Delete">Delete</Button></Activator>
    </Popconfirm>
    <Popconfirm Title="Publish now?" Severity="Severity.Info" OnConfirm="Published">
        <Activator><Button>Publish</Button></Activator>
    </Popconfirm>
    <span>@_result</span>
</Stack>

@code {
    private string _result = "Nothing chosen";

    private void Deleted() => _result = "Deleted";
    private void Kept() => _result = "Kept";
    private void Published() => _result = "Published";
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation