Skip to main content
All docs
V25.1
  • DxToast.Click Event

    Fires when a user clicks the toast notification.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [Parameter]
    public EventCallback<MouseEventArgs> Click { get; set; }

    Event Data

    The Click event's data class is MouseEventArgs.

    Remarks

    Handle the Click event to respond to toast click.

    <DxToastProvider />
    <DxToast @ref=toast Text="The task is completed." Click="ShowPopup" />
    
    <DxWindow @bind-Visible=windowVisible ShowCloseButton="true" HeaderText="Completed Tasks" >
        <BodyContentTemplate>
            @CompletedTaskList
        </BodyContentTemplate>
    </DxWindow>
    
    @code {
        bool windowVisible { get; set; } = false;
        DxToast toast;
    
        private void ShowPopup() {
            windowVisible = true;
        }
    }
    
    See Also