mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-25 05:35:55 +08:00
Update readme and references
This commit is contained in:
66
jquery.contextMenu/jquery.contextMenu.d.ts
vendored
66
jquery.contextMenu/jquery.contextMenu.d.ts
vendored
@@ -1,33 +1,33 @@
|
||||
// Type definitions for jQuery contextMenu 1.5.25
|
||||
// Project: http://medialize.github.com/jQuery-contextMenu/
|
||||
// Definitions by: Natan Vivo <https://github.com/nvivo/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery-1.9.d.ts" />
|
||||
|
||||
interface JQueryContextMenuOptions {
|
||||
selector: string;
|
||||
appendTo?: string;
|
||||
trigger?: string;
|
||||
autoHide?: bool;
|
||||
delay?: number;
|
||||
determinePosition?: (menu) => void;
|
||||
position?: (opt, x, y) => void;
|
||||
positionSubmenu?: (menu) => void;
|
||||
zIndex?: number;
|
||||
animation?: {
|
||||
duration?: number;
|
||||
show?: string;
|
||||
hide?: string;
|
||||
};
|
||||
events?: {
|
||||
show?: () => void;
|
||||
hide?: () => void;
|
||||
};
|
||||
callback?: (...args: any[]) => any;
|
||||
items: any;
|
||||
};
|
||||
|
||||
interface JQueryStatic {
|
||||
contextMenu(options?: JQueryContextMenuOptions): JQuery;
|
||||
}
|
||||
// Type definitions for jQuery contextMenu 1.5.25
|
||||
// Project: http://medialize.github.com/jQuery-contextMenu/
|
||||
// Definitions by: Natan Vivo <https://github.com/nvivo/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface JQueryContextMenuOptions {
|
||||
selector: string;
|
||||
appendTo?: string;
|
||||
trigger?: string;
|
||||
autoHide?: bool;
|
||||
delay?: number;
|
||||
determinePosition?: (menu) => void;
|
||||
position?: (opt, x, y) => void;
|
||||
positionSubmenu?: (menu) => void;
|
||||
zIndex?: number;
|
||||
animation?: {
|
||||
duration?: number;
|
||||
show?: string;
|
||||
hide?: string;
|
||||
};
|
||||
events?: {
|
||||
show?: () => void;
|
||||
hide?: () => void;
|
||||
};
|
||||
callback?: (...args: any[]) => any;
|
||||
items: any;
|
||||
};
|
||||
|
||||
interface JQueryStatic {
|
||||
contextMenu(options?: JQueryContextMenuOptions): JQuery;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user