Numeric Control Adapter
-
control adapter that handles NumericFormElements
-
handles elements initialized with …
Registration
NumericFormElement
s 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.
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
}]