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.

Parameters:
NameTypeDescription
entryinfoj-entry

type:link entry.

Properties
NameTypeAttributesDescription
entry.urlobject

Target link, required.

entry.paramsobject<optional>

Optional parameters to include in the url as encoded query string.

entry.reportobject<optional>

Optional report configuration if the link corresponds to a report. Using report requires template property with optional label.

Properties
NameTypeAttributesDescription
templatestring<optional>

Identifier for the document to display under the report link, required.

labelstring<optional>

Optional custom label for the report link.

entry.labelstring<optional>

Text to display, defaults to generic link text.

entry.data_idstring<optional>

Optional data_id for element identification.

entry.link_classstring<optional>

Optional classList string applied to the link element, eg. outlined.

entry.icon_classstring<optional>

Optional classList string appended to the material-symbols-outlined class for the icon element.

entry.icon_namestring<optional>

Optional icon name from Material Icons https://fonts.google.com/icons. Defaults to open_in_new and sets to description for reports.

Returns:
Type: 
HTMLElement