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.