Numeric Control Adapter

  • control adapter that handles NumericFormElements

  • handles elements initialized with …​


NumericFormElements are automatically created with the numeric type attribute. This ensures that a numeric control adapter is initialized on the node. By removing the data-bootstrapui-adapter-type attribute this can be prevented.

Target element

The node on which the adapter is registered/initialized.

Retrieving the current value

Returns an array holding a single BootstrapUiControlValueHolder. The context is the target element of the adapter. The label retrieves the value from the target element and the value fetches the value using the [autoNumeric] plugin on the target.

Example output
    label: "EUR1,234.12",
    value: "1234.12",
    context: input#ca-numeric.numeric.form-control

Selecting a value

Sets the value using the autoNumeric plugin.

adapter.selectValue( 1234.12 );

Event triggers


Triggered when a change event is triggered on the target element.