Skip to content

Commit 30d6af0

Browse files
committed
Update README.md
1 parent b799844 commit 30d6af0

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

README.md

+20-26
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,26 @@ treeview component (beta)
1616
</u1-tree1>
1717
```
1818

19+
## API
20+
21+
```js
22+
el.select();
23+
el.toggleExpand(true/false);
24+
```
25+
26+
## Install
27+
28+
```html
29+
<link href="https://cdn.jsdelivr.net/gh/u1ui/tree1.el@1.0.0/tree1.min.css" rel=stylesheet>
30+
<script src="https://cdn.jsdelivr.net/gh/u1ui/tree1.el@1.0.0/tree1.min.js" type=module>
31+
```
32+
33+
## Demos
34+
35+
[custom.html](https://raw.githack.com/u1ui/tree1.el/main/tests/custom.html)
36+
[minimal.html](https://raw.githack.com/u1ui/tree1.el/main/tests/minimal.html)
37+
[test.html](https://raw.githack.com/u1ui/tree1.el/main/tests/test.html)
38+
1939
## Settings
2040
2141
### aria-expanded
@@ -45,32 +65,6 @@ treeElement.addEventListener('u1-tree1-collapse', (e) => {...});
4565
treeElement.addEventListener('u1-tree1-select', (e) => { ... });
4666
```
4767
48-
## API
49-
50-
```js
51-
el.select();
52-
el.toggleExpand(true/false);
53-
```
54-
55-
## Demos
56-
57-
https://raw.githack.com/u1ui/tree1.el/main/tests/custom.html
58-
https://raw.githack.com/u1ui/tree1.el/main/tests/minimal.html
59-
https://raw.githack.com/u1ui/tree1.el/main/tests/test.html
60-
61-
## Install
62-
63-
```html
64-
<link href="https://cdn.jsdelivr.net/gh/u1ui/tree1.el@1.0.0/tree1.min.css" rel=stylesheet>
65-
<script src="https://cdn.jsdelivr.net/gh/u1ui/tree1.el@1.0.0/tree1.min.js" type=module>
66-
```
67-
68-
## Demo
69-
70-
https://raw.githack.com/u1ui/tree1.el/main/tests/custom.html
71-
https://raw.githack.com/u1ui/tree1.el/main/tests/minimal.html
72-
https://raw.githack.com/u1ui/tree1.el/main/tests/test.html
73-
7468
## About
7569
7670
- MIT License, Copyright (c) 2022 <u1> (like all repositories in this organization) <br>

0 commit comments

Comments
 (0)