Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Jun 21, 2022
1 parent b799844 commit 30d6af0
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@ treeview component (beta)
</u1-tree1>
```

## API

```js
el.select();
el.toggleExpand(true/false);
```

## Install

```html
<link href="https://cdn.jsdelivr.net/gh/u1ui/[email protected]/tree1.min.css" rel=stylesheet>
<script src="https://cdn.jsdelivr.net/gh/u1ui/[email protected]/tree1.min.js" type=module>
```
## Demos
[custom.html](https://raw.githack.com/u1ui/tree1.el/main/tests/custom.html)
[minimal.html](https://raw.githack.com/u1ui/tree1.el/main/tests/minimal.html)
[test.html](https://raw.githack.com/u1ui/tree1.el/main/tests/test.html)
## Settings
### aria-expanded
Expand Down Expand Up @@ -45,32 +65,6 @@ treeElement.addEventListener('u1-tree1-collapse', (e) => {...});
treeElement.addEventListener('u1-tree1-select', (e) => { ... });
```
## API

```js
el.select();
el.toggleExpand(true/false);
```

## Demos

https://raw.githack.com/u1ui/tree1.el/main/tests/custom.html
https://raw.githack.com/u1ui/tree1.el/main/tests/minimal.html
https://raw.githack.com/u1ui/tree1.el/main/tests/test.html

## Install

```html
<link href="https://cdn.jsdelivr.net/gh/u1ui/[email protected]/tree1.min.css" rel=stylesheet>
<script src="https://cdn.jsdelivr.net/gh/u1ui/[email protected]/tree1.min.js" type=module>
```
## Demo
https://raw.githack.com/u1ui/tree1.el/main/tests/custom.html
https://raw.githack.com/u1ui/tree1.el/main/tests/minimal.html
https://raw.githack.com/u1ui/tree1.el/main/tests/test.html
## About
- MIT License, Copyright (c) 2022 <u1> (like all repositories in this organization) <br>
Expand Down

0 comments on commit 30d6af0

Please sign in to comment.