diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2017-07-10 14:03:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 14:03:03 +0300 |
commit | 6e6fb1a47428eb106ae0702c96c3dd1095d4f2d4 (patch) | |
tree | fb234eabd70353764aa3e2d98ec454cd3448b339 /documentation/components | |
parent | cd1d58c02b35feded1a7485309cea992ed38dfd5 (diff) | |
download | vaadin-framework-6e6fb1a47428eb106ae0702c96c3dd1095d4f2d4.tar.gz vaadin-framework-6e6fb1a47428eb106ae0702c96c3dd1095d4f2d4.zip |
Clarification for GridContextClickEvent
Diffstat (limited to 'documentation/components')
-rw-r--r-- | documentation/components/components-grid.asciidoc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/documentation/components/components-grid.asciidoc b/documentation/components/components-grid.asciidoc index 6d73da72df..1cd231aa82 100644 --- a/documentation/components/components-grid.asciidoc +++ b/documentation/components/components-grid.asciidoc @@ -237,7 +237,6 @@ with an [interfacename]#ItemClickListener#. The [classname]#ItemClickEvent# object contains various information, most importantly the ID of the clicked row and column. - [source, java] ---- grid.addCellClickListener(event -> @@ -250,7 +249,16 @@ The focus indication is themed so that the focused cell has a visible focus indicator style by default, while the row does not. You can enable row focus, as well as disable cell focus, in a custom theme. See <<components.grid.css>>. +[[components.grid.right.clicks]] +=== Right-clicks +Right-clicks are supported similar way via `addContextClickListener()` method +[source, java] +---- + grid.addContextClickListener(event -> Notification.show( + ((GridContextClickEvent<Person>)event).getItem() + " Clicked") + ); +---- [[components.grid.columns]] == Configuring Columns |