ui/locations/entries/title

The key entry module exports a default [location] entry method to process infoj type:title entries.

Methods

(inner) title(entry) → {HTMLElement}

mapp.ui.locations.entries.title(entry)

The method returns just the title of the entry. You can provide a tooltip (shown when hovering over the title). You can provide a css style for the title (to style the title in a specific way).

Parameters:
NameTypeDescription
entryObject
Properties
NameTypeDescription
titlestring

The title of the entry.

tooltipstring

The tooltip of the entry.

css_titlestring

The css of the title.

Returns:

The title element.

Type: 
HTMLElement
Example
```json
{
  "title": "This is a title",
  "type":"title",
  "tooltip": "This is a tooltip",
  "css_title": "font-weight: 800"
}
```