Class idx.form.NumberSpinner
Extends
dijit.form.NumberSpinner, idx.form._CompositeMixin, idx.form._CssStateMixin.
idx.form.NumberSpinner is a composite widget which enhanced dijit.form.NumberSpinner with following features:
- Built-in label
- Built-in label positioning
- Built-in input hint
- Built-in input hint postioning
- Built-in 'required' attribute
- IBM One UI theme supporting
Defined in: <idx\form\NumberSpinner.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Field Summary
Field Attributes | Field Name and Description |
---|---|
<static> |
idx.form.NumberSpinner.templatePath
Set the template path for the desktop template in case the template was not
loaded initially, but is later needed due to an instance being constructed
with "desktop" platform.
|
- Fields borrowed from class idx.form._CompositeMixin:
- fieldWidth, help, hint, hintPosition, label, labelAlignment, labelWidth, required, unit
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
idx.form.NumberSpinner.adjust(val, delta)
|
<static> |
idx.form.NumberSpinner.displayMessage(message, force)
Show error message using a hoverHelpTooltip, hide the tooltip if message is empty.
|
<static> |
idx.form.NumberSpinner.isFocusable()
|
<static> |
idx.form.NumberSpinner.postCreate()
|
<static> |
idx.form.NumberSpinner.refocus()
Provides a method to return focus to the widget without triggering
revalidation.
|
- Methods borrowed from class idx.form._CompositeMixin:
- _setFieldWidthAttr, _setHintAttr, _setLabelAlignmentAttr, _setLabelAttr, _setLabelWidthAttr, _setRequiredAttr, _setUnitAttr, postMixInProperties, reset, resize, validateAndFocus
Constructor Detail
idx.form.NumberSpinner()
new idx.form.NumberSpinner({ constraints:{ max:300, min:100 }}, "someInput");
Field Detail
<static> idx.form.NumberSpinner.templatePath
Set the template path for the desktop template in case the template was not
loaded initially, but is later needed due to an instance being constructed
with "desktop" platform.
Method Detail
<static> idx.form.NumberSpinner.adjust(val, delta)
- Parameters:
- val
- delta
<static> idx.form.NumberSpinner.displayMessage(message, force)
Show error message using a hoverHelpTooltip, hide the tooltip if message is empty.
- Parameters:
- {string} message
- Error message
- force
<static> idx.form.NumberSpinner.isFocusable()
<static> idx.form.NumberSpinner.postCreate()
<static> idx.form.NumberSpinner.refocus()
Provides a method to return focus to the widget without triggering
revalidation. This is typically called when the validation tooltip
is closed.