@types/jquery.contextmenu
Advanced tools
Comparing version 1.7.34 to 1.7.35
@@ -11,25 +11,25 @@ // Type definitions for jQuery contextMenu 1.7.0 | ||
selector: string; | ||
appendTo?: string; | ||
trigger?: string; | ||
autoHide?: boolean; | ||
delay?: number; | ||
determinePosition?: (menu: JQuery) => void; | ||
position?: (opt: JQuery, x: number, y: number) => void; | ||
positionSubmenu?: (menu: JQuery) => void; | ||
zIndex?: number; | ||
appendTo?: string | undefined; | ||
trigger?: string | undefined; | ||
autoHide?: boolean | undefined; | ||
delay?: number | undefined; | ||
determinePosition?: ((menu: JQuery) => void) | undefined; | ||
position?: ((opt: JQuery, x: number, y: number) => void) | undefined; | ||
positionSubmenu?: ((menu: JQuery) => void) | undefined; | ||
zIndex?: number | undefined; | ||
animation?: { | ||
duration?: number; | ||
show?: string; | ||
hide?: string; | ||
}; | ||
duration?: number | undefined; | ||
show?: string | undefined; | ||
hide?: string | undefined; | ||
} | undefined; | ||
events?: { | ||
show?: (options: any) => boolean; | ||
hide?: (options: any) => boolean; | ||
}; | ||
callback?: (key: any, options: any) => any; | ||
show?: ((options: any) => boolean) | undefined; | ||
hide?: ((options: any) => boolean) | undefined; | ||
} | undefined; | ||
callback?: ((key: any, options: any) => any) | undefined; | ||
items?: any; | ||
build?: (triggerElement: JQuery, e: Event) => any; | ||
reposition?: boolean; | ||
className?: string; | ||
itemClickEvent?: string; | ||
build?: ((triggerElement: JQuery, e: Event) => any) | undefined; | ||
reposition?: boolean | undefined; | ||
className?: string | undefined; | ||
itemClickEvent?: string | undefined; | ||
} | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "@types/jquery.contextmenu", | ||
"version": "1.7.34", | ||
"version": "1.7.35", | ||
"description": "TypeScript definitions for jQuery contextMenu", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.contextmenu", | ||
"license": "MIT", | ||
@@ -14,6 +15,7 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/jquery.contextmenu" | ||
}, | ||
@@ -24,4 +26,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "d7bb12a10448e2d07e88ada79092cfd89d5f8b495c87056efe877ebfc75d3b80", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "a997dc3c4bb47d7ea49c0a52ce61e73d2f5c1b48a24b597bc6dc6805c57407c8", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,57 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.contextmenu | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.contextmenu. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.contextmenu/index.d.ts) | ||
````ts | ||
// Type definitions for jQuery contextMenu 1.7.0 | ||
// Project: http://medialize.github.com/jQuery-contextMenu/ | ||
// Definitions by: Natan Vivo <https://github.com/nvivo> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
Additional Details | ||
* Last updated: Mon, 19 Nov 2018 17:19:02 GMT | ||
* Dependencies: jquery | ||
/// <reference types="jquery" /> | ||
interface JQueryContextMenuOptions { | ||
selector: string; | ||
appendTo?: string | undefined; | ||
trigger?: string | undefined; | ||
autoHide?: boolean | undefined; | ||
delay?: number | undefined; | ||
determinePosition?: ((menu: JQuery) => void) | undefined; | ||
position?: ((opt: JQuery, x: number, y: number) => void) | undefined; | ||
positionSubmenu?: ((menu: JQuery) => void) | undefined; | ||
zIndex?: number | undefined; | ||
animation?: { | ||
duration?: number | undefined; | ||
show?: string | undefined; | ||
hide?: string | undefined; | ||
} | undefined; | ||
events?: { | ||
show?: ((options: any) => boolean) | undefined; | ||
hide?: ((options: any) => boolean) | undefined; | ||
} | undefined; | ||
callback?: ((key: any, options: any) => any) | undefined; | ||
items?: any; | ||
build?: ((triggerElement: JQuery, e: Event) => any) | undefined; | ||
reposition?: boolean | undefined; | ||
className?: string | undefined; | ||
itemClickEvent?: string | undefined; | ||
} | ||
interface JQueryStatic { | ||
contextMenu(options?: JQueryContextMenuOptions): JQuery; | ||
contextMenu(type: string, selector?: any): JQuery; | ||
} | ||
interface JQuery { | ||
contextMenu(options?: any): JQuery; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 16:22:34 GMT | ||
* Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Natan Vivo <https://github.com/nvivo>. | ||
These definitions were written by [Natan Vivo](https://github.com/nvivo). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5679
0
64