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:
PropertiesName | Type | Description |
---|---|---|
entry | infoj-entry |
Name | Type | Description |
---|---|---|
entry.title | string | The title of the entry. |
entry.tooltip | string | The tooltip of the entry. |
entry.css_title | string | 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"
}
```