Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
Close #5
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Apr 3, 2013
1 parent 12571c1 commit f279880
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions sample-widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
padding: 2px;
width: 30px;
}
.ui-menu {
width: 120px;
}
</style>

<!-- Add code to initialize the tree when the document is loaded: -->
Expand All @@ -37,7 +40,7 @@
$("#info").text("");
},
beforeOpen: function(event) {
alert("beforeopen on " + $(event.relatedTarget).text());
// alert("beforeopen on " + $(event.relatedTarget).text());
},
open: function(event, ui) {
// alert("open on " + $(event.relatedTarget).text());
Expand All @@ -59,12 +62,12 @@
<body class="example">
<h1>jquery.contextmenu.js</h1>

<p><a href="https://github.com/mar10/jquery-contextmenu">Project site</a></p>

<p><a href="https://github.com/mar10/jquery-contextmenu">View project on GitHub</a></p>
<p>Right-click in an element to open the context menu:</p>
<div id="container">
<div class="hasmenu">AAA</div>
<div class="hasmenu">BBB</div>
<div class="hasmenu">CCC</div>
<div class="hasmenu">AAA</div>
<div class="hasmenu">BBB</div>
<div class="hasmenu">CCC</div>
</div>

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

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

0 comments on commit f279880

Please sign in to comment.