MoneyEdit
The MoneyEdit component renders a currency input for Dataverse money columns with locale-specific formatting.
<MoneyEdit ColumnName="annualincome" />
Range & Precision
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
Here is an example that demonstrates the use of a MoneyEdit component.
MoneyEdit (Extended Properties)
This demonstrates the most common properties that are availabe to set on the MoneyEdit.
MoneyEdit Class
Parameters
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? |
Format | string? | Optional format string used to display the numeric value (e.g. 'n2' for two decimal places). | |
HideStep | bool | False | When true, hides the increment/decrement step buttons on the number input. |
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. | |
Value | decimal? | 0 | Gets or sets the editor's current numeric value. |
Name:
ChildContentType:
RenderFragment?
Description:
Child content of the component
Name:
ColumnNameType:
string
Description:
Column logical name to bind the editor to from the table record.
Name:
DescriptionType:
string?
Description:
Description to be displayed in the tooltip.
Name:
DisabledType:
bool?
Description:
Should the editor be disabled.
Name:
DisplayLabelWhenAvailableType:
bool
Default:
True
Description:
Specifies whether to display a lable if available.
Name:
DisplayTooltipWhenAvailableType:
bool
Default:
True
Description:
Specifies whether to display a tooltip if available.
Name:
DisplayValidationErrorMessageType:
bool
Default:
True
Description:
Should a validation error message be displayed when the component fails validation?
Name:
FormatType:
string?
Description:
Optional format string used to display the numeric value (e.g. 'n2' for two decimal places).
Name:
HideStepType:
bool
Default:
False
Description:
When true, hides the increment/decrement step buttons on the number input.
Name:
IsVisibleType:
bool
Default:
True
Description:
Is the editor visible.
Name:
LabelType:
string?
Description:
Text to be displayed as a label for the editor.
Name:
MaxType:
decimal?
Description:
Maximum allowable value for the number editor.
Name:
MinType:
decimal?
Description:
Minimum allowable value for the number editor.
Name:
PrecisionType:
int?
Description:
Number of decimal places to round and display.
Name:
ReadOnlyType:
bool?
Description:
Should the editor be read-only.
Name:
RequiredType:
bool?
Description:
Should the value be required.
Name:
ValueType:
decimal?
Default:
0
Description:
Gets or sets the editor's current numeric value.
Events
Name | Type | Description |
|---|---|---|
ValueChanged | EventCallback<ColumnValueBase> | Gets or sets a callback that updates the bound value. |
Name:
ValueChangedType:
EventCallback<ColumnValueBase>
Description:
Gets or sets a callback that updates the bound value.
Methods
Name | Parameters | Type | Description |
|---|---|---|---|
GetValidationErrors | List<string> | Returns a collection of the current validation errors. |
Name:
GetValidationErrorsType:
List<string>
Description:
Returns a collection of the current validation errors.
