context-menu with Polymer

1,169 views
Skip to first unread message

silver...@gmail.com

unread,
Jul 30, 2014, 12:21:09 PM7/30/14
to polym...@googlegroups.com
Hi,

how would you create an right-click context-menu with Polymer?

Something like: http://medialize.github.com/jQuery-contextMenu/

All I could found on web is:

https://github.com/Polymer/paper-input/issues/27 where this guy doesn't say how he tried it.

Dart has it but how do I avoid using dart (or convert to JS?): http://szgabsz91.github.io/html-components/#/menu/context-menu


Kr,
Techar

silver...@gmail.com

unread,
Jul 30, 2014, 12:30:20 PM7/30/14
to polym...@googlegroups.com, silver...@gmail.com
Ah, here is where the guy found it: https://plus.google.com/+GerwinSturm/posts/Uf5MzKPErGD

And here is a the component I could use :) http://customelements.io/


Cheers!

silver...@gmail.com

unread,
Jul 30, 2014, 1:51:17 PM7/30/14
to polym...@googlegroups.com, silver...@gmail.com
Looks like Alexandars context-menu doesn't support different menues for multiple elements (just tried out)

I'm open for any other suggestions.

Kr,
Techar




On Wednesday, July 30, 2014 6:21:09 PM UTC+2, silver...@gmail.com wrote:

silver...@gmail.com

unread,
Jul 30, 2014, 2:05:11 PM7/30/14
to polym...@googlegroups.com, silver...@gmail.com
OK, Aleks' stuff works like a charm with multiple menus.

I just had to do:

$(elementCssPath).append($("<context-menu></context-menu>"));




On Wednesday, July 30, 2014 6:21:09 PM UTC+2, silver...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages