ui/locations/entries/text
The locations entries text module exports the default text entry as mapp.ui.locations.entries.text(entry)
Dictionary entries:
- loading
- no_options_available
Requires
Methods
(inner) onkeyup(e, entry)
The method is triggered by the onkeyup event of the text input.
The newValue property is assigned from the event target input element.
The value will be split into an array if the arraySeparator string property is defined in the entry.edit configuration.
The location valChange event is dispatched to check whether the newValue is changed from the current value.
| Name | Type | Description |
|---|---|---|
e | event | onkeyup event. |
entry | infoj-entry | type:geometry entry. |
| Name | Type | Attributes | Description |
|---|---|---|---|
entry.newValue | object | value for valChange check. | |
entry.edit | object | editing configuration. | |
edit.arraySeparator | string | <optional> | string value used to split a string into an array value. |
entry.location | location | location to update. |
(inner) text(entry) → {HTMLElement}
The text method will return the textedit function for editable entries or an HTML node with the formated field value.
Non editable entries without a value will return void.
| Name | Type | Description |
|---|---|---|
entry | infoj-entry | type:geometry entry. |
| Name | Type | Attributes | Description |
|---|---|---|---|
entry.value | Object | geometry as JSON value. | |
entry.edit | Object | <optional> | configuration object for editing the value. |
elements for the location view.
- Type:
- HTMLElement
(inner) textedit(entry) → {HTMLElement}
The textedit method will return input elements for editable type:text entries.
A container element is returned if edit.options are defined. The async textoptions method is called to populate this container element.
A text input is returned if no options are configured.
| Name | Type | Description |
|---|---|---|
entry | infoj-entry | type:geometry entry. |
| Name | Type | Attributes | Description |
|---|---|---|---|
entry.value | Object | geometry as JSON value. | |
entry.edit | Object | configuration object for editing the value. | |
edit.options | array | <optional> | options array for valid values. |
elements for the location view.
- Type:
- HTMLElement
(async, inner) textoptions(entry)
The textoptions method will render a dropdown control for the edit.options[] array values into the entry.container.
| Name | Type | Description |
|---|---|---|
entry | infoj-entry | type:geometry entry. |
| Name | Type | Description |
|---|---|---|
entry.value | Object | geometry as JSON value. |
entry.edit | Object | configuration object for editing the value. |