TimeSpanOutOfBoundsValueProcessMode Enum
Lists values that specify whether a time span mask‘s section should accept values that exceed the section’s maximum threshold.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public enum TimeSpanOutOfBoundsValueProcessMode
Members
Name | Description |
---|---|
Deny
|
Users can enter only valid numbers into all mask sections (0-23 hours, 0-59 minutes, 0-59 seconds). |
UpdateNextSection
|
Users can enter any number into any mask section. If the entered value exceeds the section’s maximum threshold, the editor increases its neighboring section value. |
AcceptForBiggestUnits
|
Users can enter any number into the mask section that corresponds to the largest measurement unit, while they can enter only valid values in other mask sections. |
Related API Members
The following properties accept/return TimeSpanOutOfBoundsValueProcessMode values:
Remarks
The OutOfBoundsValueProcessMode property specifies whether users can enter a number that exceeds the section’s maximum threshold (for instance, 65 minutes). The following code snippet allows users to enter any number into any mask section:
<DxMaskedInput @bind-Value="@time"
Mask="@TimeSpanMask.GeneralShortFormat">
<DxTimeSpanMaskProperties OutOfBoundsValueProcessMode="@TimeSpanOutOfBoundsValueProcessMode.UpdateNextSection" />
</DxMaskedInput>
@code {
TimeSpan time { get; set; } = new TimeSpan(5, 16, 30, 15, 7);
}
Refer to the following topic for more information: Time Span Masks.