up
This commit is contained in:
parent
4ae129054e
commit
ab9ab64bd5
476 changed files with 3370 additions and 532 deletions
14
2-ui/2-events/03-event-delegation/2-sliding-tree/task.md
Normal file
14
2-ui/2-events/03-event-delegation/2-sliding-tree/task.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Tree menu
|
||||
|
||||
Create a tree that shows/hides node children on click:
|
||||
|
||||
[iframe border=1 src="solution"]
|
||||
|
||||
Requirements:
|
||||
|
||||
- Only one event handler (use delegation)
|
||||
- A click outside the node title (on an empty space) should not do anything.
|
Loading…
Add table
Add a link
Reference in a new issue