Back to Devexpress

DxTimeSpanMaskProperties.SelectAllInputMode Property

blazor-devexpress-dot-blazor-dot-dxtimespanmaskproperties-995e1d0f.md

latest3.0 KB
Original Source

DxTimeSpanMaskProperties.SelectAllInputMode Property

Specifies whether the editor clears all section values after a user selects all content and starts to enter digits.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(TimeSpanSelectAllInputMode.ResetDefaultFocusSection)]
[Parameter]
public TimeSpanSelectAllInputMode SelectAllInputMode { get; set; }

Property Value

TypeDefaultDescription
TimeSpanSelectAllInputModeResetDefaultFocusSection

A TimeSpanSelectAllInputMode enumeration value.

|

Available values:

NameDescription
ResetAllSections

The editor clears all sections of the previous value and directs user input into the default focus section.

| | ResetDefaultFocusSection |

The editor directs user input into the default focus section and retains all other section values.

|

Remarks

A user can select all sections, although a mask allows users to modify only one section at a time. When a user selects all sections and starts to enter digits, the editor directs user input to the default focus section and retains all other section values.

Set the SelectAllInputMode property to ResetAllSections to clear all sections of the previous value after a user selects all content and starts to enter digits. In this mode, the editor also directs user input to the default focus section.

razor
<DxMaskedInput @bind-Value="@time" 
               Mask="[dd DD]hh HH[mm MM][ss SS]">
    <DxTimeSpanMaskProperties DefaultFocusSection="@TimeSpanSection.Hours"
                              SelectAllInputMode="@TimeSpanSelectAllInputMode.ResetAllSections" />
</DxMaskedInput>

@code {
    TimeSpan time { get; set; } = new TimeSpan(5, 16, 30, 15, 7);
}

Note that the editor hides an optional zero value section if it is the first or last visible section.

Refer to the following topic for additional information: Mask Settings.

See Also

DxTimeSpanMaskProperties Class

DxTimeSpanMaskProperties Members

DevExpress.Blazor Namespace