Skip to content

Commit c08603c

Browse files
describe browser console use
1 parent 436e37d commit c08603c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ 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:
31+
```js
32+
const solidLogo = 'https://solidproject.org/assets/img/solid-emblem.svg'
33+
const myButton = UI.widgets.button(document, solidLogo, 'test', () => window.alert('clicked!'))
34+
UI.widgets.clearElement(document.body)
35+
document.body.appendChild(myButton)
36+
```
37+
See https://solid.github.io/solid-ui/Documentation/api/ for the API documentation.
38+
3039
## Overview
3140
This has been a place to put any functionality from solid views which has been generalized to be usable in other views.
3241

0 commit comments

Comments
 (0)