RayCraftDocs
v1.0.3 raycraft.dev
On this page

MoneyField

Free

Amount 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

MoneyField control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
CurrencystringISO currency code (EUR, USD, GBP, BGN); its symbol is shown next to the amount and accepted when typing.
CurrencySymbolstringSymbol shown instead of the one derived from Currency.
Decimalsint?Digits kept after the decimal point (MoneyField: defaults to the culture's currency digits; PercentField: default 2).
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxDecimal?Largest allowed value (ProgressBar: the value that means 100%; Rating: number of stars).
MinDecimal?Smallest allowed value.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
ValueTValueCurrent value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<TValue>Raised when the value changes.

Package

MoneyField is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.