Skip to main content
All docs
V24.1

ToastOptions.Title Property

Specifies the toast notification title.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
public string Title { get; set; }

Property Value

Type Default Description
String null

The title.

Remarks

Use the Title property to specify the toast notification title.

<style>
    .italic-text {
        font-style: italic;
        text-align: center;
    }
</style>

<DxButton Text="Show a toast" Click="CreateToastAtRuntime" />
<DxToastProvider />

@code {
    [Inject] IToastNotificationService ToastService { get; set; }

    private void CreateToastAtRuntime() {
        ToastService.ShowToast(new ToastOptions {
            Title = "Notification",
            Text = "The process is completed.",
            ShowIcon = false,
            CssClass = "italic-text",
            ThemeMode = ToastThemeMode.Pastel,
            ShowCloseButton = false,
        });
    }
}

Customized toast notification

See Also