DxMessageBox.CancelButtonText Property
Specifies the Cancel button text.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public string CancelButtonText { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | null | The button text. |
Remarks
When the Type property is set to Confirmation
, the message box displays the Cancel button. Use the CancelButtonText
property to customize the button text.
<DxButton Text="Show Alert" Click="@(() => MessageBoxVisible = true)" />
<DxMessageBox @bind-Visible="MessageBoxVisible"
Title="Error"
Text="Unable to process the request. Please try again later or contact support."
OkButtonText="Contact Support"
CancelButtonText="Try Later"
RenderStyle="MessageBoxRenderStyle.Danger"
Type="MessageBoxType.Confirmation"/>
@code {
bool MessageBoxVisible { get; set; } = false;
}
See Also