@types/jquery.contextmenu
Advanced tools
Weekly downloads
Readme
npm install --save @types/jquery.contextmenu
This package contains type definitions for jQuery contextMenu (http://medialize.github.com/jQuery-contextMenu/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.contextmenu.
// 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
/// <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;
}
These definitions were written by Natan Vivo.
FAQs
TypeScript definitions for jQuery contextMenu
The npm package @types/jquery.contextmenu receives a total of 444 weekly downloads. As such, @types/jquery.contextmenu popularity was classified as not popular.
We found that @types/jquery.contextmenu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.