在该页面上,有一个标记为TRY IT OUT 链接到此处的演示页面的按钮。
我的问题是我无法让演示页面真正做任何事情。我在控制台中没有看到任何错误。
是我的问题吗?还是演示有问题?如果是后者,我该如何修复代码以使演示工作?
请在工作的 jsBin 或 Codepen 中显示解决方案。
https://jsbin.com/yihupap/1/edit?html,输出<!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>