-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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. ♥ | ||