Back to Devexpress

DxToastProvider.Width Property

blazor-devexpress-dot-blazor-dot-dxtoastprovider.md

latest1.5 KB
Original Source

DxToastProvider.Width Property

Specifies the width of the toast notification container.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue("300px")]
[Parameter]
public string Width { get; set; }

Property Value

TypeDefaultDescription
String"300px"

The width in CSS units.

|

Remarks

Use the Width property to specify the width of a container that displays toast notifications.

Toast notification height is determined automatically based on toast content. You can limit the maximum toast height for every toast (DxToastProvider.MaxHeight) or a specified toast (DxToast.MaxHeight orToastOptions.MaxHeight).

razor
<DxToastProvider 
    ThemeMode=ToastThemeMode.Pastel 
    DisplayTime="@TimeSpan.FromSeconds(20)" .
    FreezeOnClick="true"
    MaxHeight="150px"
    Width="400px"/>

See Also

DxToastProvider Class

DxToastProvider Members

DevExpress.Blazor Namespace