Integer number input element behavior. This behavior can be applied to any suitable element..
that have this behavior applied by default:
<input type="integer" /> - inline integer 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=integer - initial value of the input elementmin=integer - minimal allowed value.max=integer - maximal allowed value.step=integer - 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.