/CurrencyField

An extension of Ext numberfield

Primary LanguageJavaScript

CurrencyField - Read Me

=============

A currency Form Field for Sencha, ExtJS 5.x and 6.x

This widget is an extension of numberfield and has currency Picker.


Usage:

Define the field as normal numberfield, plus you can bind it to the store and choose displayField & valueField as in combobox.

Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/27mf


configs:

currencyValue : String Holds the current value for currency.
displayField : String The underlying data field name to bind to CurrencyField.
See also valueField. Defaults to: 'text'
readOnly : Boolean This config is inherited from the parent.
Disabling field via this prop will leave currency picker visible in read only format.
readOnlyPicker : Boolean This config will disable picker only and leave numberfield active.
valueField : String The underlying data value name to bind to this CurrencyField.
Defaults to match the value of the displayField config.


methods:

getCurrencyValue() : A getter method for currencyValue to do custom update of a loaded record.