IMask


Pattern Mask

Blazor
<BdkIMaskPattern Mask="{#}000[aaa]/NIC-`*[**]">
    <input class="form-control" value="#534/NIC-534" />
</BdkIMaskPattern>

Number Mask

Blazor
<BdkIMaskNumber T="decimal?">
    <input class="form-control" value="1" />
</BdkIMaskNumber>

Number Mask Parameters

Blazor
<BdkIMaskNumber T="decimal?" PadFractionalZeros ThousandsSeparator=@('.') Max="10000" Min="0">
    <input class="form-control" value="10000" />
</BdkIMaskNumber>

Number Mask Binding

12345.67
Blazor
<BdkIMaskNumber @bind-Value=DecimalValue 
                BindTarget="BdkIMaskBindTarget.TypedValue" 
                ThousandsSeparator=@(' ')>
    <input class="form-control"/>
</BdkIMaskNumber>
@(DecimalValue.HasValue ? DecimalValue.Value : "null")
@code {
    public decimal? DecimalValue { get; set; } = 12_345.67m;
}