floating number input element behavior.
that have this behavior applied by default:
<input type="decimal" />
- inline float input elementUpon initialization the behavior creates following DOM structure:
<input>
<caption>
<button.plus>
<button.minus>
</input>
Where <caption> will have behavior:edit
applied with corresponding filter set. <button.plus>
/<button.minus>
sub-elements will be created if the input has attribute step
defined.
All sub-elements will have :synthetic
state flag set on them.
that this behavior knows about:
value=float
- initial value of the input elementmin=float
- minimal allowed value.max=float
- maximal allowed value.step=float
- increment/decrement step. If this property is defined the behavior will create additional -/+ buttons.novalue="text"
- if editbox is empty then it shows text provided by the novalue attribute. You can style this state by using :empty
CSS selector.readonly
- declares that element is read only.Aside of standard set of events (mouse, keyboard, focus) behavior: button generates:
integer or undefined, reflects current status of internal editing buffer.
dir
attribute these key combinations switches between dir="ltr"
and dir="rtl"
.N/A - this input element has no specific methods but <caption> sub-element has behavior:edit specific methods.