Skip to content

Commit

Permalink
Added mouse event contextmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
dcappellin committed Jun 20, 2016
1 parent e325b36 commit adc8599
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions jquery/jquery.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,24 @@ interface JQuery {
*/
click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;

/**
* Trigger the "contextmenu" event on an element.
*/
contextmenu(): JQuery;
/**
* Bind an event handler to the "contextmenu" JavaScript event.
*
* @param handler A function to execute when the event is triggered.
*/
contextmenu(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
/**
* Bind an event handler to the "contextmenu" JavaScript event.
*
* @param eventData An object containing data that will be passed to the event handler.
* @param handler A function to execute when the event is triggered.
*/
contextmenu(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;

/**
* Trigger the "dblclick" event on an element.
*/
Expand Down

0 comments on commit adc8599

Please sign in to comment.