DxToastProvider.MaxHeight Property
Limits the maximum height of toast notifications.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public string MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
String | The height in CSS units. |
Remarks
A toast notification height is determined automatically based on toast content. Use the MaxHeight
property to limit the maximum toast height. You can use the DxToast.MaxHeight or ToastOptions.MaxHeight property to specify a height limit for a particular toast.
The DxToastProvider.Width property determines the toast width, which is the same for every toast in a provider.
<DxToastProvider
ThemeMode=ToastThemeMode.Pastel
DisplayTime="@TimeSpan.FromSeconds(20)" .
FreezeOnClick="true"
MaxHeight="150px"
Width="400px"/>
See Also