Skip to content

Commit 616c230

Browse files
committed
Conflicts: sample-widget.html
2 parents d2cb771 + f279880 commit 616c230

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sample-widget.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
padding: 2px;
2121
width: 30px;
2222
}
23+
.ui-menu {
24+
width: 120px;
25+
}
2326
</style>
2427

2528
<!-- Add code to initialize the tree when the document is loaded: -->
@@ -59,12 +62,12 @@
5962
<body class="example">
6063
<h1>jquery.contextmenu.js</h1>
6164

62-
<p><a href="https://github.com/mar10/jquery-contextmenu">Project site</a></p>
63-
65+
<p><a href="https://github.com/mar10/jquery-contextmenu">View project on GitHub</a></p>
66+
<p>Right-click in an element to open the context menu:</p>
6467
<div id="container">
65-
<div class="hasmenu">AAA</div>
66-
<div class="hasmenu">BBB</div>
67-
<div class="hasmenu">CCC</div>
68+
<div class="hasmenu">AAA</div>
69+
<div class="hasmenu">BBB</div>
70+
<div class="hasmenu">CCC</div>
6871
</div>
6972

7073
<ul id="options" class="ui-helper-hidden">
@@ -79,6 +82,7 @@ <h1>jquery.contextmenu.js</h1>
7982
</ul>
8083
</ul>
8184

85+
<p>Open context menu using <code>$("#container").contextmenu("open", $(".hasmenu:first"))</code>:</p>
8286
<button id="triggerPopup">Trigger popup</button>
8387
</body>
8488
</html>

0 commit comments

Comments
 (0)