Skip to content

Commit e9cbc5a

Browse files
Document how to add an ACLControlBox5 into your page
1 parent c08603c commit e9cbc5a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ Now run `npx serve` and go to http://localhost:5000/examples/ with your browser
2727
See the ['examples' folder](https://github.com/solid/solid-ui/tree/examples/examples) for the
2828
source code of those examples.
2929

30-
You can open the web console in your browser and try some of the following commands:
30+
While viewing one of those examples, you can open the web console in your browser and for instance
31+
try how you can create a button:
3132
```js
3233
const solidLogo = 'https://solidproject.org/assets/img/solid-emblem.svg'
34+
const exampleFolder = 'https://example-user.inrupt.net/public/public-control/'
3335
const myButton = UI.widgets.button(document, solidLogo, 'test', () => window.alert('clicked!'))
3436
UI.widgets.clearElement(document.body)
3537
document.body.appendChild(myButton)
38+
const aclControlBox = UI.aclControl.ACLControlBox5(UI.rdf.namedNode(exampleFolder), { dom: document }, '', UI.store)
39+
document.body.appendChild(aclControlBox)
3640
```
3741
See https://solid.github.io/solid-ui/Documentation/api/ for the API documentation.
3842

0 commit comments

Comments
 (0)