Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 852 Bytes

File metadata and controls

30 lines (24 loc) · 852 Bytes

import * as UI from '../../src/index'

import { Canvas, Meta, Story } from "@storybook/addon-docs"; import { action } from "@storybook/addon-actions";

openHrefInOutlineMode

Event Handler for links within solid apps.

API docs

{() => { document.outlineManager = { GotoSubject: action("go to subject"), }; const anchor = document.createElement("a"); anchor.setAttribute("href", "http://example.com"); anchor.onclick = (e) => { UI.widgets.openHrefInOutlineMode(e); return false; }; anchor.appendChild(document.createTextNode("click me")); return anchor; }}