Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Jul 1, 2022
1 parent 5c3f5de commit dc77dd2
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
Treeview component

## Features

- Keyboard navigation
- Focus on the next item that starts with the pressed key
- Expand/collapse events
- Lazy loading of children



## Ussage

```html
Expand All @@ -35,20 +34,6 @@ u1-tree1::part(row):focus {
}
```

## 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](http://gcdn.li/u1ui/tree1.el@main/tests/custom.html)
[minimal.html](http://gcdn.li/u1ui/tree1.el@main/tests/minimal.html)
[test.html](http://gcdn.li/u1ui/tree1.el@main/tests/test.html)
## API

### Javascript
Expand Down Expand Up @@ -97,15 +82,27 @@ treeElement.addEventListener('u1-tree1-select', (e) => { ... });
| u1-tree1[aria-selected=true] | Item when selected |
| u1-tree1:focus | Item has focus |

## 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](http://gcdn.li/u1ui/tree1.el@main/tests/custom.html)
[minimal.html](http://gcdn.li/u1ui/tree1.el@main/tests/minimal.html)
[test.html](http://gcdn.li/u1ui/tree1.el@main/tests/test.html)
## Todo
Ask me if you need it!
- Add support for multiple selection
- Drag and drop
## About
- MIT License, Copyright (c) 2022 <u1> (like all repositories in this organization) <br>
- Suggestions, ideas, finding bugs and making pull requests make us very happy. ♥

0 comments on commit dc77dd2

Please sign in to comment.