ui/locations/entries/text
The locations entries text module exports the default text entry as mapp.ui.locations.entries.text(entry)
Methods
(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.
The container populated by the textoptions method will be returned if an options array has been defined in the edit object.
The options array will be populated with distinct values from the data at rest if the length of the options array is naught.
A text input is returned if no options are configured.
The oninput method for the text input will split the value as an array if an arraySeparator has been defined in the entry.edit{} property.
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) 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 | Attributes | Description |
---|---|---|---|
entry.value | Object | geometry as JSON value. | |
entry.edit | Object | <optional> | configuration object for editing the value. |