behavior: number

either integer or floating number input element behavior.

Elements

that have this behavior applied by default:

Model

Upon 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.

Attributes

that this behavior knows about:

Events

Aside of standard set of events (mouse, keyboard, focus) behavior: button generates:

Value

integer or undefined, reflects current status of internal editing buffer.

Special key combinations

Methods

N/A - this input element has no specific methods but <caption> sub-element has behavior:edit specific methods.