Basic Control Adapter
Most basic control adapter that manages its values using jQuery#val
.
Registration
TextboxFormElement
s are automatically created with the basic
type attribute.
This ensures that a basic 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 and the value hold the same value, which is retrieved using jQuery#val
on the target element.
Example output
[{
label: "Moby dick",
value: "Moby dick",
context: input#ca-textbox.form-control
}]