Back to Devexpress

DxTimeSpanMaskProperties.CaretMode Property

blazor-devexpress-dot-blazor-dot-dxtimespanmaskproperties.md

latest2.1 KB
Original Source

DxTimeSpanMaskProperties.CaretMode Property

Specifies the caret navigation mode.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(MaskCaretMode.Regular)]
[Parameter]
public MaskCaretMode CaretMode { get; set; }

Property Value

TypeDefaultDescription
MaskCaretModeRegular

A caret navigation mode.

|

Available values:

NameDescription
Regular

Input focus remains within one section until a user moves focus to another section.

| | Advancing |

After a user completes input into a mask section, the caret moves to the next editable section.

|

Remarks

Time span masks can include multiple sections (for instance, hours and minutes). Users can modify one section at a time. Input focus remains within one section until a user moves focus to another section.

Set the CaretMode property to MaskCaretMode.Advancing to move the caret to the next editable section after a user completes input into a mask section:

razor
<DxMaskedInput @bind-Value="@Value"
            Mask="@TimeSpanMask.GeneralShortFormat">
    <DxTimeSpanMaskProperties CaretMode="@MaskCaretMode.Advancing" />
</DxMaskedInput>

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

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

See Also

DxTimeSpanMaskProperties Class

DxTimeSpanMaskProperties Members

DevExpress.Blazor Namespace