title | description |
---|---|
ModalWebView |
Open modal WebView. |
This requires cordova 5.0+
cordova plugin add https://github.com/takeyoda/cordova-plugin-modalwebview.git
var modal = new ModalWebView(function () {
console.log('modal closed');
});
modal.setErrorTextColor(0xFFFFFF);
modal.setErrorBackgroundColor(0xEE0044);
modal.setOrientation('portrait');
var button = document.getElementById('some_element');
button.addEventListener('click', function() {
modal.open('https://www.example.com/', 'WebView title');
});