forked from jquery/api.jquery.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontextmenu-shorthand.xml
36 lines (36 loc) · 1.59 KB
/
contextmenu-shorthand.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<entry type="method" name="contextmenu" return="jQuery" deprecated="3.3">
<title>.contextmenu()</title>
<desc>Bind an event handler to the "contextmenu" event, or trigger that event on an element.</desc>
<signature>
<added>1.0</added>
<argument name="handler" type="Function">
<desc>A function to execute each time the event is triggered.</desc>
<argument name="eventObject" type="Event" />
</argument>
</signature>
<signature>
<added>1.4.3</added>
<argument name="eventData" type="Anything" optional="true">
<desc>An object containing data that will be passed to the event handler.</desc>
</argument>
<argument name="handler" type="Function">
<desc>A function to execute each time the event is triggered.</desc>
<argument name="eventObject" type="Event" />
</argument>
</signature>
<signature>
<added>1.0</added>
</signature>
<longdesc>
<div class="warning">
<p>This API is deprecated.</p>
<p>Instead of <code>.contextmenu( handler )</code> or <code>.contextmenu( eventData, handler )</code>, use <a href="/contextmenu/#on1"><code>.on( "contextmenu", handler )</code></a> or <a href="/contextmenu/#on1"><code>.on( "contextmenu", eventData, handler )</code></a>, respectively.</p>
<p>Instead of <code>.contextmenu()</code>, use <a href="/contextmenu/#trigger2"><code>.trigger( "contextmenu" )</code></a>.</p>
</div>
</longdesc>
<category slug="events/mouse-events"/>
<category slug="version/1.0"/>
<category slug="version/1.4.3"/>
<category slug="deprecated/deprecated-3.3"/>
</entry>