File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 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: -->
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 >
You can’t perform that action at this time.
0 commit comments