DxSpinEdit<T>.ClearButtonDisplayMode Property
Specifies whether the Spin Edit displays the Clear button when it is not empty.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v21.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(DataEditorClearButtonDisplayMode.Never)]
[Parameter]
public DataEditorClearButtonDisplayMode ClearButtonDisplayMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DataEditorClearButtonDisplayMode | **Never** | A DataEditorClearButtonDisplayMode enumeration value. |
Available values:
Name | Description |
---|---|
Auto | The Clear button is displayed when an editor is not empty and is not in the read-only state. This mode requires that the editor’s data type is nullable. |
Never | The Clear button is not displayed. |
Remarks
The Clear button clears the editor’s value (sets it to NULL). To display this button in the editor when there is a value in it, set the ClearButtonDisplayMode property to DataEditorClearButtonDisplayMode.Auto. This mode also requires that the editor’s data type is nullable.
<DxSpinEdit @bind-Value="@NumericValue"
ClearButtonDisplayMode="DataEditorClearButtonDisplayMode.Auto">
</DxSpinEdit>
@code {
int? NumericValue { get; set; } = 721;
}