Caplin Trader 4.0.3

Class: module:caplin/presenter/domain/node/DealtCurrencySelectionField



new module:caplin/presenter/domain/node/DealtCurrencySelectionField(oFxInstrument, oDealtCurrencyopt)

A dealt currency specific module:caplin/presenter/node/SelectionField intended for use in toggle switch controls which depend on a currency pair property.

The options in an instance of a DealtCurrencySelectionField are generated from the oFxInstrument that the field is constructed with, and changes if the property changes. The value of the field also changes if the options change, to the first currency in the new pair.

Name Type Attributes Description
oFxInstrument module:caplin/presenter/property/EditableProperty A property created with the module:caplin/trading/presenter/TradeModelPropertyFactory and bound to the currency pair within the trade.
oDealtCurrency <optional>
The default value for the pair