ui/locations/entries/link
The link entry module exports the default link_entry method to create link elements for the location view.
Methods
(inner) link_entry(entry) → {HTMLElement}
This entry function returns an HTML element with a hyperlink to open in a new window. The link is labelled with configurable text and a material symbol for readability.
This element supports report object configuration with a custom template and optional url parameters.
Styling options include altering icon name and its css class and also a placeholder for including other existing css classes on the element itself.
Name | Type | Description |
---|---|---|
entry | infoj-entry | type:link entry. |
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
entry.url | object | Target link, required. | |||||||||||||
entry.params | object | <optional> | Optional parameters to include in the url as encoded query string. | ||||||||||||
entry.report | object | <optional> | Optional report configuration if the link corresponds to a report. Using report requires Properties
| ||||||||||||
entry.label | string | <optional> | Text to display, defaults to generic link text. | ||||||||||||
entry.data_id | string | <optional> | Optional data_id for element identification. | ||||||||||||
entry.link_class | string | <optional> | Optional classList string applied to the link element, eg. | ||||||||||||
entry.icon_class | string | <optional> | Optional classList string appended to the | ||||||||||||
entry.icon_name | string | <optional> | Optional icon name from Material Icons |
- Type:
- HTMLElement