Back to Devexpress

DxToast.ShowCloseButton Property

blazor-devexpress-dot-blazor-dot-dxtoast-45b41126.md

latest1.6 KB
Original Source

DxToast.ShowCloseButton Property

Specifies whether the toast displays the Close button.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ShowCloseButton { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to display the Close button; otherwise, false.

|

Remarks

Set the ShowCloseButton to false to hide the Close button from the toast notification. If the ShowCloseButton property is not specified, Close button visibility is determined by the DxToastProvider.ShowCloseButton property.

razor
<DxToast @ref=toastButtons
         Title="Notification"
         Text="The process is completed."
         ShowIcon="false"
         CssClass="italic-text"
         ThemeMode="ToastThemeMode.Pastel"
         ShowCloseButton="false" />
css
.italic-text {
    font-style: italic;
    text-align: center;
}

See Also

DxToast Class

DxToast Members

DevExpress.Blazor Namespace