Link column type with safe URLs
`type: 'link'` renders anchors from a URL field or a URL builder function. A protocol allowlist blocks javascript: and data: URLs by default. External links get rel='noopener noreferrer' when they open in a new tab.
Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A companies grid with a website link column, including one malicious row whose URL is 'javascript:alert(1)'.
Expected behavior
Safe URLs render as links. The malicious URL renders as plain text with a blocked indicator. In router mode, a click is intercepted and fires onLinkClick without a full page load.
Planned API surface
type'link'hrefhrefFieldlinkTexttargetallowedProtocolsonLinkClickrouterAdapterAcceptance criteria
- Only http, https, mailto and tel are allowed by default. Relative URLs are allowed. (pending)
- target=_blank always adds rel='noopener noreferrer'. (pending)
- Blocked URLs never become an href attribute. (pending)
- Ctrl or Cmd+click and middle click keep native behaviour in router mode. (pending)
- Enter on a focused link cell activates the link. (pending)