Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.19 KB

File metadata and controls

49 lines (37 loc) · 1.19 KB

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

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

complain

API docs

{() => { const div = document.createElement("div"); UI.widgets.complain({ div, dom: document }, "not good!"); return div; }}

errorMessageBlock

API docs

{() => { return UI.widgets.errorMessageBlock(document, "my error message", "#f0f"); }}

setName

Sets the best name we have and looks up a better one

API docs

{() => { const div = document.createElement("div"); const jane = $rdf.namedNode("https://jane.example/person/card#me"); SolidLogic.store.add(jane, UI.ns.foaf("name"), "Jane Doe"); UI.widgets.setName(div, jane); return div; }}