Here is the vaadin-context-menu
documentation page。vaadin-context-menuデモを動作させるには?
このページには、TRY IT OUTthat links to a demo page hereと表示されたボタンがあります。
私の問題は、私がデモページを実際に何かすることができないということです。コンソールにエラーは表示されません。
私の最後に問題がありますか?または、デモに何か問題がありますか?後者の場合、デモを動作させるためにコードを修正するにはどうすればよいですか?
解決策をjsBinまたはCodepenで表示してください。
https://jsbin.com/yihupap/1/edit?html,output<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>vaadin-context-menu demo</title>
<script src="https://cdn.vaadin.com/vaadin-core-elements/master/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="https://cdn.vaadin.com/vaadin-core-elements/master/vaadin-context-menu/vaadin-context-menu.html">
<!-- import paper-menu and paper-item -->
<link rel="import" href="https://cdn.vaadin.com/vaadin-core-elements/master/paper-listbox/paper-listbox.html">
<link rel="import" href="https://cdn.vaadin.com/vaadin-core-elements/master/paper-item/paper-item.html">
</head>
<body>
<vaadin-context-menu>
<template>
<paper-listbox>
<paper-item>First menu item</paper-item>
<paper-item>Second menu item</paper-item>
</paper-listbox>
</template>
<p>This paragraph has the context menu provided in the above template.</p>
<p>Another paragraph with the context menu.</p>
</vaadin-context-menu>
</body>
</html>
を右クローム59.0.3071.115で段落をクリックしたとき、私は、半透明のコンテキストメニューを取得します私はあなたのために何かを疑うだろう。 – Morfic
私のためにも動作します。最初の段落を右クリックしましたか? – petey
作業例はここにあります:https://vaadin.com/elements/-/element/vaadin-context-menu#demos – petey