This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

cordova-plugin-context-menu

0.1.1 • Public • Published

cordova-plugin-context-menu

cordova-plugin-context-menu on NPM

Platforms

  • Android 4.4.2
  • Browser
  • iOS 7
  • Windows 10 Build 10240+

Installation

cordova plugin add cordova-plugin-context-menu --save

Methods

Open a context menu at x,y

var entries = [];
entries.push({
    title: 'Entry 1',
    id: 'test'
});
entries.push({
    title: 'Entry 2',
    id: 'foo'
});
entries.push({
    title: '',
    id: '',
    isSeparator: true
});
entries.push({
    title: 'Entry 3',
    id: 'bar'
});
 
var context = {
    title: 'Title',
    items: entries,
    x: 0,
    y: 0
}
ContextMenu.open(context, function (ele) {
    console.log('You clicked the entry with an id of ' + ele);
}););

License

MIT

Package Sidebar

Install

npm i cordova-plugin-context-menu

Weekly Downloads

9

Version

0.1.1

License

MIT

Last publish

Collaborators

  • filiphsandstrom