diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2017-07-10 15:04:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 15:04:22 +0300 |
commit | a7b2de20d60ea157501d21d8e5179126571e7c36 (patch) | |
tree | fd0deeddfa4015cef0544e840151e7a76d046b2b /documentation/components/components-tree.asciidoc | |
parent | 6e6fb1a47428eb106ae0702c96c3dd1095d4f2d4 (diff) | |
download | vaadin-framework-a7b2de20d60ea157501d21d8e5179126571e7c36.tar.gz vaadin-framework-a7b2de20d60ea157501d21d8e5179126571e7c36.zip |
Implement tree item context click
Fixes #9606
Fixes #9645
Fixes #9647
Diffstat (limited to 'documentation/components/components-tree.asciidoc')
-rw-r--r-- | documentation/components/components-tree.asciidoc | 11 |
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 |