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.

Example

MoneyEdit (Extended Properties)

This demonstrates the most common properties that are availabe to set on the MoneyEdit.

Example
Readonly? Required? Disabled?

MoneyEdit Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
Child content of the component
ColumnNamestring
Column logical name to bind the editor to from the table record.
Descriptionstring?
Description to be displayed in the tooltip.
Disabledbool?
Should the editor be disabled.
DisplayLabelWhenAvailablebool
True
Specifies whether to display a lable if available.
DisplayTooltipWhenAvailablebool
True
Specifies whether to display a tooltip if available.
DisplayValidationErrorMessagebool
True
Should a validation error message be displayed when the component fails validation?
Formatstring?
Optional format string used to display the numeric value (e.g. 'n2' for two decimal places).
HideStepbool
False
When true, hides the increment/decrement step buttons on the number input.
IsVisiblebool
True
Is the editor visible.
Labelstring?
Text to be displayed as a label for the editor.
Maxdecimal?
Maximum allowable value for the number editor.
Mindecimal?
Minimum allowable value for the number editor.
Precisionint?
Number of decimal places to round and display.
ReadOnlybool?
Should the editor be read-only.
Requiredbool?
Should the value be required.
Valuedecimal?
0
Gets or sets the editor's current numeric value.
Name: ChildContent
Type: RenderFragment?
Description: Child content of the component
Name: ColumnName
Type: string
Description: Column logical name to bind the editor to from the table record.
Name: Description
Type: string?
Description: Description to be displayed in the tooltip.
Name: Disabled
Type: bool?
Description: Should the editor be disabled.
Name: DisplayLabelWhenAvailable
Type: bool
Default: True
Description: Specifies whether to display a lable if available.
Name: DisplayTooltipWhenAvailable
Type: bool
Default: True
Description: Specifies whether to display a tooltip if available.
Name: DisplayValidationErrorMessage
Type: bool
Default: True
Description: Should a validation error message be displayed when the component fails validation?
Name: Format
Type: string?
Description: Optional format string used to display the numeric value (e.g. 'n2' for two decimal places).
Name: HideStep
Type: bool
Default: False
Description: When true, hides the increment/decrement step buttons on the number input.
Name: IsVisible
Type: bool
Default: True
Description: Is the editor visible.
Name: Label
Type: string?
Description: Text to be displayed as a label for the editor.
Name: Max
Type: decimal?
Description: Maximum allowable value for the number editor.
Name: Min
Type: decimal?
Description: Minimum allowable value for the number editor.
Name: Precision
Type: int?
Description: Number of decimal places to round and display.
Name: ReadOnly
Type: bool?
Description: Should the editor be read-only.
Name: Required
Type: bool?
Description: Should the value be required.
Name: Value
Type: decimal?
Default: 0
Description: Gets or sets the editor's current numeric value.

Events

Name
Type
Description
ValueChangedEventCallback<ColumnValueBase>
Gets or sets a callback that updates the bound value.
Name: ValueChanged
Type: EventCallback<ColumnValueBase>
Description: Gets or sets a callback that updates the bound value.

Methods

Name
Parameters
Type
Description
GetValidationErrorsList<string>
Returns a collection of the current validation errors.
Name: GetValidationErrors
Type: List<string>
Description: Returns a collection of the current validation errors.