Skip to content

Commit f5a22fd

Browse files
committed
handlers for TreeViewOpen & Close events
1 parent 249d5d9 commit f5a22fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Widgets/TreeView/TreeView.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ public function onSelect(callable $callback): static
7171

7272
public function onOpen(callable $callback): static
7373
{
74+
$this->bind('<<TreeviewOpen>>', fn () => $callback($this));
7475
return $this;
7576
}
7677

7778
public function onClose(callable $callback): static
7879
{
80+
$this->bind('<<TreeviewClose>>', fn () => $callback($this));
7981
return $this;
8082
}
8183

0 commit comments

Comments
 (0)