The MoneyEdit component renders a currency input for Dataverse money columns with locale-specific formatting.
<MoneyEdit columnName="annualincome" /><MoneyEdit ColumnName="annualincome" />Use Min and Max to set value boundaries, and Precision to control the number of decimal places. These values are automatically populated from the column metadata if not explicitly set.
<MoneyEdit columnName="annualincome" min={0} max={1000000} precision={2} /><MoneyEdit ColumnName="annualincome" Min="0" Max="1000000" Precision="2" />A basic MoneyEdit bound to a money column.
Use the controls below to explore the available properties.
Name | Type | Default | Description |
|---|---|---|---|
ChildContent | RenderFragment? | Child content of the component | |
ColumnName* | string | Column logical name to bind the editor to from the table record. | |
Description | string? | Description to be displayed in the tooltip. | |
Disabled | bool? | Should the editor be disabled. | |
DisplayLabelWhenAvailable | bool | True | Specifies whether to display a lable if available. |
DisplayTooltipWhenAvailable | bool | True | Specifies whether to display a tooltip if available. |
DisplayValidationErrorMessage | bool | True | Should a validation error message be displayed when the component fails validation? |
EndContent | RenderFragment? | Content rendered in the field's | |
Format | string? | Optional .NET format string used to display the value (e.g. 'n2'). Mainly affects the read-only view. | |
HideStep | bool | False | When |
IsVisible | bool | True | Is the editor visible. |
Label | string? | Text to be displayed as a label for the editor. | |
Max | decimal? | Maximum allowable value for the number editor. | |
Min | decimal? | Minimum allowable value for the number editor. | |
Precision | int? | Number of decimal places to round and display. | |
ReadOnly | bool? | Should the editor be read-only. | |
Required | bool? | Should the value be required. | |
StartContent | RenderFragment? | Content rendered in the field's | |
Step | double | 1 | Amount added/subtracted by the spinner buttons (and arrow keys). Defaults to 1. |
Value | decimal? | Gets or sets the editor's current numeric value, persisting it as the right Models.ColumnValueBase. |
ChildContentColumnName*DescriptionDisabledDisplayLabelWhenAvailableDisplayTooltipWhenAvailableDisplayValidationErrorMessageEndContentFormatHideStepIsVisibleLabelMaxMinPrecisionReadOnlyRequiredStartContentStepValueModels.ColumnValueBase.Name | Type | Description |
|---|---|---|
ValueChanged | EventCallback<ColumnValueBase> | Gets or sets a callback that updates the bound value. |
ValueChangedName | Parameters | Type | Description |
|---|---|---|---|
GetValidationErrors | List<string> | Returns a collection of the current validation errors. |
GetValidationErrors