From a7b2de20d60ea157501d21d8e5179126571e7c36 Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Mon, 10 Jul 2017 15:04:22 +0300 Subject: Implement tree item context click Fixes #9606 Fixes #9645 Fixes #9647 --- documentation/components/components-tree.asciidoc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'documentation') diff --git a/documentation/components/components-tree.asciidoc b/documentation/components/components-tree.asciidoc index 03ea963170..cc44bec6ea 100644 --- a/documentation/components/components-tree.asciidoc +++ b/documentation/components/components-tree.asciidoc @@ -98,6 +98,17 @@ tree.addItemClickListener(event -> ); ---- +[[components.tree.right.clicks]] +=== Right-clicks +Right-clicks are supported similar way via `addContextClickListener()` method + +[source, java] +---- + tree.addContextClickListener(event -> Notification.show( + ((TreeContextClickEvent)event).getItem() + " Clicked") + ); +---- + [[components.tree.expandcollapse]] == Expanding and Collapsing Nodes -- cgit v1.2.3