/ui/locations/entries/time

The module exports the default time entry method.

Methods

(inner) time(entry) → {HTMLElement}

The entry method returns a formated numeric value. 10.43 > "10:43".

If editable an input type:time will be returned. The onchange event method of the input will parse a float value from the time string and dispatch the valChange event on the location view.

Parameters:
NameTypeDescription
entryinfoj-entry

type:geometry entry.

Properties
NameTypeAttributesDescription
entry.valueObject

A numeric time value.

entry.editObject<optional>

configuration object for editing the value.

Returns:

elements for the location view.

Type: 
HTMLElement