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 20
20
padding : 2px ;
21
21
width : 30px ;
22
22
}
23
+ .ui-menu {
24
+ width : 120px ;
25
+ }
23
26
</ style >
24
27
25
28
<!-- Add code to initialize the tree when the document is loaded: -->
59
62
< body class ="example ">
60
63
< h1 > jquery.contextmenu.js</ h1 >
61
64
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 >
64
67
< 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 >
68
71
</ div >
69
72
70
73
< ul id ="options " class ="ui-helper-hidden ">
@@ -79,6 +82,7 @@ <h1>jquery.contextmenu.js</h1>
79
82
</ ul >
80
83
</ ul >
81
84
85
+ < p > Open context menu using < code > $("#container").contextmenu("open", $(".hasmenu:first"))</ code > :</ p >
82
86
< button id ="triggerPopup "> Trigger popup</ button >
83
87
</ body >
84
88
</ html >
You can’t perform that action at this time.
0 commit comments