DxMessageBox.OkButtonText Property
Specifies the OK button text.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public string OkButtonText { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| String | null | The button text. |
Remarks
Use the OkButtonText property to customize the OK button text.
When the Type property is set to Confirmation, the message box additionally 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