summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/components/components-tree.asciidoc11
1 files changed, 11 insertions, 0 deletions
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<Person>)event).getItem() + " Clicked")
+ );
+----
+
[[components.tree.expandcollapse]]
== Expanding and Collapsing Nodes