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.

Parameters:
NameTypeDescription
entryinfoj-entry

type:geometry entry.

Properties
NameTypeAttributesDescription
entry.valueObject

geometry as JSON value.

entry.editObject<optional>

configuration object for editing the value.

Returns:

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.

Parameters:
NameTypeDescription
entryinfoj-entry

type:geometry entry.

Properties
NameTypeAttributesDescription
entry.valueObject

geometry as JSON value.

entry.editObject<optional>

configuration object for editing the value.

Returns:

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.

Parameters:
NameTypeDescription
entryinfoj-entry

type:geometry entry.

Properties
NameTypeAttributesDescription
entry.valueObject

geometry as JSON value.

entry.editObject<optional>

configuration object for editing the value.