Skip to content

Commit 47caf43

Browse files
committed
story for selectorPanelRefresh
1 parent 91e9c00 commit 47caf43

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

src/stories/Interactive.stories.mdx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,39 @@ A TR to represent a draggable person, etc in a list
9393
}
9494
}
9595
</Story>
96+
</Canvas>
97+
98+
## selectorPanelRefresh
99+
100+
[API documentation](https://solid.github.io/solid-ui/Documentation/api/modules/_widgets_buttons_.html#selectorpanelrefresh)
101+
102+
<Canvas>
103+
<Story name="selectorPanelRefresh">
104+
{() => {
105+
const list = document.createElement('div')
106+
const kb = UI.rdf.graph()
107+
const type = UI.rdf.namedNode('http://example.com/#type')
108+
const predicate = UI.rdf.namedNode('http://example.com/#pred')
109+
const inverse = false
110+
const possible = [
111+
UI.rdf.namedNode('http://example.com/#blue'),
112+
UI.rdf.namedNode('http://example.com/#green'),
113+
UI.rdf.namedNode('http://example.com/#yellow')
114+
]
115+
const options = {}
116+
return UI.widgets.selectorPanelRefresh(
117+
list,
118+
document,
119+
kb,
120+
type,
121+
predicate,
122+
inverse,
123+
possible,
124+
options,
125+
action("selection"),
126+
action("link clicked")
127+
)
128+
}
129+
}
130+
</Story>
96131
</Canvas>

0 commit comments

Comments
 (0)