Skip to content

mtechaccess/cordova-plugin-context-menu-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-context-menu-state

ContextMenuState

The ContextMenuState object controls the visibilty of iOS context menus, i.e. the Cut/Copy/Paste menu.

By default, installation of this plugin hides the context menu.

⚠️ Report any issues on the ContextMenuState issue tracker

Installation

This installation method requires cordova 5.0+

cordova plugin add cordova-plugin-context-menu-state

It possible to install via repo url directly.

cordova plugin add https://github.com/mtechaccess/cordova-plugin-context-menu-state.git

Methods

This plugin defines the global ContextMenuState object.

Although in the global scope, it is not available until after the deviceready event.

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log(ContextMenuState);
    ContextMenuState.setVisible(true);
}
  • ContextMenuState.setVisible

setVisible

On iOS, show or hide the context menu:

ContextMenuState.setVisible(true);
ContextMenuState.setVisible(false);

Supported Platforms

  • iOS