Table of Contents

behavior: decimal

Decimal number input behavior.

Elements

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

Attributes

that this behavior knows about:

example:

format="grouping:3; 
   fdigits:4; 
   leading-zero:false; 
   decimal-sep:','; 
   thousand-sep:'_'; 
   negative-sign:false"

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;"
}

Methods

The behavior supports following xcall() methods (see dom::element::xcall() function):

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