TimeSpanSelectAllInputMode Enum
Lists values that specify actions the editor should perform after a user selects all content of a time span mask and starts to enter digits.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public enum TimeSpanSelectAllInputMode
Members
Name | Description |
---|---|
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. |
Related API Members
The following properties accept/return TimeSpanSelectAllInputMode values:
Remarks
A user can select all editor content, although a time span 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 sections and enters a new value. In this mode, the editor also directs user input to the default focus section.
<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 more information: Time Span Masks.