From fd2e2f542fe41095dcf15344b037a218f858446b Mon Sep 17 00:00:00 2001 From: SandObserver <260779319+SandObserver@users.noreply.github.com> Date: Fri, 2 Oct 2026 22:07:48 -0400 Subject: [PATCH] Docs: list the widget toolbox link helper --- src/content/docs/docs/create-a-widget/widget-page.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/docs/create-a-widget/widget-page.md b/src/content/docs/docs/create-a-widget/widget-page.md index 0d2e236..ff9c2b1 100644 --- a/src/content/docs/docs/create-a-widget/widget-page.md +++ b/src/content/docs/docs/create-a-widget/widget-page.md @@ -137,6 +137,7 @@ The wording comes from the failure kind, not the upstream message. `errorLine(er ### Links, markup and visuals - `openUrl(href)` opens a link in a new tab. Use it instead of `window.open`, which the sandbox can block. +- `linkTo(el, href)` makes `el` a link to `href`: a tab stop that opens on click and on Enter. Call it again to change the link. An empty `href` removes it. Keep buttons out of `el`. - `esc(value)` HTML-escapes a value for `innerHTML`. Use it for anything from config or upstream. - `sparkline(values, opts?)` returns an `` area and line chart. - `barFill(percent, opts?)` returns a track and fill bar. It skips its transition under reduced motion.