CurrencyInputTValue Class

Input form for currency values, such as dollars, euros or pounds.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class CurrencyInput<TValue> : BlazorBootstrapComponentBase
where TValue : struct, new(), INumber<TValue>
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    CurrencyInputTValue

Type Parameters

TValue
Number type to store the value in.

Constructors

CurrencyInputTValueInitializes a new instance of the CurrencyInputTValue class

Properties

AllowNegativeNumbers If , allows negative numbers.
AutoComplete If , CurrencyInput can complete the values automatically by the browser.
CurrencySign Gets or sets the currency sign.
Disabled Gets or sets the disabled state.
EnableMinMax Determines whether to restrict the user input to Min and Max range. If , restricts the user input between the Min and Max range. Else accepts the user input.
HideCurrencySymbol Determines whether to hide the currency symbol are not.
Locale Gets or sets the locale.
Max Gets or sets the max. Max ignored if EnableMinMax="false".
MaximumFractionDigits The maximum number of fraction digits to use.
Min Gets or sets the min. Min ignored if EnableMinMax="false".
MinimumFractionDigits The minimum number of fraction digits to use.
MinimumIntegerDigits The minimum number of integer digits to use. A value with a smaller number of integer digits than this number will be left-padded with zeros (to the specified length) when formatted.
Placeholder Gets or sets the placeholder.
TextAlignment Gets or sets the text alignment.
Value Gets or sets the value.
ValueChanged This event fired on every user keystroke that changes the CurrencyInput value.
ValueExpression An expression that identifies the bound value.

Methods

Disable Disables currency input.
Enable Enables currency input.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

Exceptions

InvalidOperationExceptionThrown if Max is smaller than Min

See Also