Table of Contents

behavior: currency

Currency input behavior.

Elements

that have this behavior applied by default (see master style sheet):

Attributes

that this behavior knows about:

If the format attribute is ommited then the behavior will use current user settings for currency.

Automatic attributes - set by behavior and can be used for styling purposes:

format attribute can also be defined in CSS as a custom attribute -format. Thus you may define it for group of input elements as:

input.decimal {
  behavior:decimal;
  -format="fdigits:2; leading-zero:true;"
}

Events

Together with the standard set of events (mouse, keyboard, focus) behavior: button generates:

Value

type json::value::V_FLOAT, reflects current status of internal editing buffer.

Special key combinations

See edit