MoneyField
FreeAmount field for decimal and decimal? values. The text is formatted and parsed with the current culture (both 1,234.50 and 1.234,50 are understood), rounded to Decimals and kept inside Min and Max. The currency symbol sits on the side the culture uses.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Currency | string | ISO currency code (EUR, USD, GBP, BGN); its symbol is shown next to the amount and accepted when typing. |
CurrencySymbol | string | Symbol shown instead of the one derived from Currency. |
Decimals | int? | Digits kept after the decimal point (MoneyField: defaults to the culture's currency digits; PercentField: default 2). |
Disabled | bool | Disables interaction. |
DisplayName | string | Name used in validation messages. |
HelperText | string | Hint shown below the field. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
Max | Decimal? | Largest allowed value (ProgressBar: the value that means 100%; Rating: number of stars). |
Min | Decimal? | Smallest allowed value. |
ReadOnly | bool | Shows the value but does not allow changes. |
Style | string | Inline style added to the root element. |
Value | TValue | Current value. Use with @bind-Value. |
Events
| Event | Type | Description |
|---|---|---|
ValueChanged | EventCallback<TValue> | Raised when the value changes. |
Package
MoneyField is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3