CurrencyInput

This documentation provides a comprehensive reference for the CurrencyInput component, guiding you through its configuration options.
Demos

Screenshot #

Blazor CurrencyInput Component

Parameters #

Name Type Default Required Description Added Version
AdditionalAttributes Dictionary<string, object>? null Gets or sets additional attributes that will be applied to the component. 1.0.0
AllowNegativeNumbers bool False Gets or sets whether users can enter negative currency values. When false, negative input is rejected during parsing. 1.0.0
AutoComplete bool False Gets or sets whether browser autocomplete is enabled. When true, the browser may offer saved values for the input. 1.0.0
Class string? null Gets or sets the CSS class name(s) to apply to the component. 1.0.0
CurrencySign CurrencySign Standard Gets or sets how the currency sign is displayed when the value is formatted. 1.0.0
Disabled bool False Gets or sets whether the input is disabled. When true, users cannot change its value. 1.0.0
EnableMinMax bool False Gets or sets whether input is restricted to the configured minimum and maximum values. When true, values outside the range are rejected. 1.0.0
HideCurrencySymbol bool False Gets or sets whether the currency symbol is hidden. When true, formatting omits the symbol while retaining the numeric value. 1.0.0
Id string? null Gets or sets the ID. If not set, a unique ID will be generated. 1.0.0
Locale string en-US Gets or sets the culture name used to format the currency value. It controls decimal separators, grouping, and currency conventions. 1.0.0
Max object? null Gets or sets the maximum permitted value. It is enforced only when EnableMinMax is true. 1.0.0
MaximumFractionDigits Byte? null Gets or sets the maximum number of fraction digits used when formatting the value. Null uses the culture default. 1.0.0
Min object? null Gets or sets the minimum permitted value. It is enforced only when EnableMinMax is true. 1.0.0
MinimumFractionDigits Byte? null Gets or sets the minimum number of fraction digits used when formatting the value. Null uses the culture default. 1.0.0
MinimumIntegerDigits Byte 1 Gets or sets the minimum number of integer digits used when formatting. Values with fewer digits are left-padded with zeros. 1.0.0
Placeholder string? null Gets or sets placeholder text displayed when the input has no value. 1.0.0
Style string? null Gets or sets the CSS style string that defines the inline styles for the component. 1.0.0
TextAlignment Alignment None Gets or sets the horizontal alignment of the formatted input value. 1.0.0
Value object? null Gets or sets the current currency value bound to the input. 1.0.0
ValueExpression Expression<Func<object?>> null Gets or sets the expression that identifies the bound value for validation and EditContext notifications. 1.0.0

Methods #

Name Return type Description Added Version
Disable() Void Disables the currency input so users cannot change its value. 1.0.0
Enable() Void Enables the currency input so users can change its value. 1.0.0

Events #

Name Return Type Description Added Version
ValueChanged EventCallback<object?> Fires whenever user input changes the currency value, including changes produced by typing. 1.0.0

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.