Saulis / iron-data-table

iron-data-table is a Web Component for displaying data as a table or grid. Built on top of iron-list using Polymer.
Apache License 2.0
147 stars 66 forks source link

Integrating iron-data-table with any context-menu plugin. #184

Open alboy51 opened 7 years ago

alboy51 commented 7 years ago

I tried to use 2 of the plugins

  1. https://vaadin.com/elements/-/element/vaadin-context-menu
  2. http://link2twenty.github.io/l2t-context-menu/components/l2t-context-menu/

First issue is that I cannot find how to bind it to a row, not a certain cell. I want the context menu to open when I right click on a row, but I was only able to stick it inside data-table-template. It worked, but it produced an issue of multiple menus if I click on a different cell.

Second issue - because of shadow dom, the context menu is tied to the show-dom (I think), and when I right-click on it, the menu appears BELOW the table. Both the plugins had the same result.

Do you have any ideas how create a context menu with your table? Thank you.