DxToast.ShowCloseButton Property
Specifies whether the toast displays the Close button.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(true)]
[Parameter]
public bool ShowCloseButton { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | true |
|
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.
<style>
.italic-text {
font-style: italic;
text-align: center;
}
</style>
<DxToast @ref=toastButtons
Title="Notification"
Text="The process is completed."
ShowIcon="false"
CssClass="italic-text"
ThemeMode="ToastThemeMode.Pastel"
ShowCloseButton="false" />

See Also