import InputMoney from 'n2o/src/components/controls/InputMoney/InputMoney.jsx'InputMoney
Extends:
Компонент ввода денег
Example:
React Props:
| Name | Type | Attribute | Description |
| value | string | значение | |
| className | string | класс компонента | |
| prefix | string | вывод валюты в начале | |
| suffix | string | вывод валюты в конце | |
| includeThousandsSeparator | boolean | флаг включения разделителя тысяч | |
| thousandsSeparatorSymbol | string | разделитель тысяч | |
| allowDecimal | boolean | флаг разрешения float | |
| decimalSymbol | string | разделитель float | |
| decimalLimit | number | лимит float | |
| integerLimit | number | целочисленный лимит | |
| allowNegative | boolean | флаг включения отрицательных чисел | |
| allowLeadingZeroes | boolean | флаг разрешения нулей вначале |
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
state: {"value": *} |
|
Method Summary
| Public Methods | ||
| public |
componentDidUpdate(prevProps: *) |
|
| public |
convertToFloat(value: *): * |
|
| public |
convertToMoney(value: *): * |
|
| public |
getInputMoneyProps(): {...undefined: Object, "preset": string, "value": *, "onChange": *, "onBlur": *, "className": *, "presetConfig": *} |
|
| public |
onBlur(value: *) |
|
| public |
onChange(value: *) |
|
| public |
render(): * |
|
| public |
replaceSpecialSymbol(value: *, searchValue: *, replaceValue: *): * |
|
Public Constructors
public constructor() source
Public Members
public state: {"value": *} source
Public Methods
public componentDidUpdate(prevProps: *) source
Params:
| Name | Type | Attribute | Description |
| prevProps | * |
public getInputMoneyProps(): {...undefined: Object, "preset": string, "value": *, "onChange": *, "onBlur": *, "className": *, "presetConfig": *} source
public onBlur(value: *) source
Params:
| Name | Type | Attribute | Description |
| value | * |
public onChange(value: *) source
Params:
| Name | Type | Attribute | Description |
| value | * |
public replaceSpecialSymbol(value: *, searchValue: *, replaceValue: *): * source
Params:
| Name | Type | Attribute | Description |
| value | * | ||
| searchValue | * | ||
| replaceValue | * |
Return:
| * |