]>
git.proxmox.com Git - extjs.git/blob - extjs/packages/legacy/modern/src/device/browser/Abstract.js
4 Ext
.define('Ext.device.browser.Abstract', {
6 * Used to open a new browser window.
8 * When used with Cordova, a new InAppBrowser window opens. With Cordova, you also have the ability
9 * to listen when the window starts loading, is finished loading, fails to load, and when it is closed.
10 * You can also use the {@link #close} method to close the window, if opened.
12 * @param {Object} options
13 * The options to use when opening a new browser window.
15 * @param {String} options.url
18 * @param {Object} options.listeners
19 * The listeners you want to add onto the window. Available events are:
21 * - `loadstart` - when the window starts loading the URL
22 * - `loadstop` - when the window is finished loading the URL
23 * - `loaderror` - when the window encounters an error loading the URL
24 * - `close` - when the window is closed
26 * @param {Boolean} options.showToolbar
27 * True to show the toolbar in the browser window.
29 * @param {String} options.options
30 * A string of options which are used when using Cordova. For a full list of options, visit the
31 * [PhoneGap documention](http://docs.phonegap.com/en/2.6.0/cordova_inappbrowser_inappbrowser.md.html#window.open).
36 * Used to close the browser, if one is opened.