Back to Devexpress

DxToast.Text Property

blazor-devexpress-dot-blazor-dot-dxtoast-fca44858.md

latest1.3 KB
Original Source

DxToast.Text Property

Specifies the toast’s text.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string Text { get; set; }

Property Value

TypeDefaultDescription
Stringnull

Toast text.

|

Remarks

Use the Text property to specify the text displayed in the toast notification.

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