Skip to content

Commit

Permalink
Update the NumericRangeValidator demo to mention numeric suffixes tha…
Browse files Browse the repository at this point in the history
…t hint the Blazor parser what type to infer.
  • Loading branch information
akorchev committed Nov 15, 2024
1 parent 96b8901 commit fd4bd63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RadzenBlazorDemos/Pages/NumericRangeValidatorConfig.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
</RadzenColumn>
<RadzenColumn Size="12" SizeMD="8">
<RadzenNumeric Name="Quantity" @bind-Value=@model.Quantity @oninput=@OnInput Style="display: block; width: 100%;" />
<RadzenNumericRangeValidator Component="Quantity" Min="1" Max="10" Text="Quantity should be between 1 and 10" Popup=@popup Style="position: absolute" />
<!-- Use 'm' (decimal), 'f' (float) or 'd' (double) as numeric literal suffix when setting Min and Max -->
<RadzenNumericRangeValidator Component="Quantity" Min="1m" Max="10m" Text="Quantity should be between 1 and 10" Popup=@popup Style="position: absolute" />
</RadzenColumn>
</RadzenRow>
<RadzenRow AlignItems="AlignItems.Center" class="rz-mt-4">
Expand Down

0 comments on commit fd4bd63

Please sign in to comment.