Exports the numeric entries method.
Methods
(inner) edit(entry) → {HTMLElement}
Returns a numeric input for editing numeric or integer type entries.
Will return a slider element if edit.range is true. A slider element can only be returned if the current value is valid.
Numeric entry edits must be bound by min and max.
Defaults for non big integer will be applied if missing.
Name | Type | Description |
---|---|---|
entry | infoj-entry | type:numeric or type:integer infoj-entry typedef object. |
Name | Type | Description |
---|---|---|
entry.value | numeric | The entry value. |
entry.edit | Object | Editing config for entry, can be Boolean. |
Input element to modify numeric entry value.
- Type:
- HTMLElement
(inner) numeric(entry) → {HTMLElement}
Returns a numeric entry node for the location.view.
The string value displayed in the location view will be formatted according to the formatterParams.
The mapp.language property value will be assigned as default locale for localeString formatting.
Formatting will be surpressed if the formatterParams are set to null.
Name | Type | Description |
---|---|---|
entry | infoj-entry | type:numeric or type:integer infoj-entry typedef object. |
Name | Type | Attributes | Description |
---|---|---|---|
entry.value | numeric | The entry value. | |
entry.newValue | numeric | <optional> | The new ntry value not yet stored. |
entry.formatterParams | Object | <optional> | Configuration for the localeString number format. |
entry.suffix | String | <optional> | Suffix appended to stringValue. |
entry.prefix | String | <optional> | Prefix prepended to stringValue. |
entry.edit | Object | <optional> | Editing config for entry. |
Element to display a string of numeric entry value.
- Type:
- HTMLElement