cordova-plugin-context-menu-state
v0.2.5
Published
Plugin to show/hide iOS context menu
Downloads
15
Maintainers
Readme
cordova-plugin-context-menu-state
ContextMenuState
The
ContextMenuStateobject controls the visibilty of iOS context menus, i.e. the Cut/Copy/Paste menu.
By default, installation of this plugin hides the context menu.
:warning: Report any issues on the ContextMenuState issue tracker
Installation
This installation method requires cordova 5.0+
cordova plugin add cordova-plugin-context-menu-stateIt possible to install via repo url directly.
cordova plugin add https://github.com/mtechaccess/cordova-plugin-context-menu-state.gitMethods
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
