Skip to main content

LinkContext

A PressableContext that contains an href.

graph LR AbstractContext["AbstractContext<br><span class='properties'>id: string<br />_type: string</span>"] --> AbstractLocationContext; AbstractLocationContext --> PressableContext; PressableContext --> LinkContext["LinkContext<br><span class='properties'>href: string"]; class LinkContext diagramActive; click AbstractLocationContext "/docs/taxonomy/location-contexts/" "See details" _self click PressableContext "/docs/taxonomy/reference/location-contexts/PressableContext" "See details" _self

Diagram: LinkContext inheritance

Properties

typedescription
idstringUnique string to be combined with the Context Type (_type) for Context instance uniqueness.
_typestringString literal used during serialization. Should always match the Context interface name.
hrefstringURL (href) the link points to.
setting of the id & type

The tracker will automatically set the id and _type based on the link element. When this is not possible on a specific platform, it will ask for a manual id and _type to be set.