aceUINumberInput

A simple number input widget.

Minion

Configuration

Attribute Description Default
"minValue" number

The minimum value allowed to be entered.
[domainObject].min | Number.MIN_SAFE_INTEGER
"maxValue" number

The maximum value allowed to be entered.
[domainObject].max | Number.MAX_SAFE_INTEGER
"step" number || "any"

A stepping interval to use when using up and down arrows to adjust the value, as well as for validation.
1
"placeholder" string

A placeholder text shown if no number has been entered.
""

The step attribute value specifies the granularity that the entered value must adhere to, or the special string value any.

A string value of any means that no stepping is implied, and any value is allowed (barring other constraints such as minValue and maxValue).

Localization

This widget has localization support.

Localizable configuration properties: placeholder.

Expected domain objects

This widget expects a single domain object of type integer or double

Example template json

{
  "label": "Max entries",
  "widget": "aceUINumberInput",

  "config": {
    "minValue": 1,
    "maxValue": 10,
    "placeholder": "0",
    "step": 1
  },

  "domainObject": "collection/maxEntries"
}