]> git.proxmox.com Git - extjs.git/blob - extjs/packages/legacy/modern/src/device/browser/Abstract.js
add extjs 6.0.1 sources
[extjs.git] / extjs / packages / legacy / modern / src / device / browser / Abstract.js
1 /**
2 * @private
3 */
4 Ext.define('Ext.device.browser.Abstract', {
5 /**
6 * Used to open a new browser window.
7 *
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.
11 *
12 * @param {Object} options
13 * The options to use when opening a new browser window.
14 *
15 * @param {String} options.url
16 * The URL to open.
17 *
18 * @param {Object} options.listeners
19 * The listeners you want to add onto the window. Available events are:
20 *
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
25 *
26 * @param {Boolean} options.showToolbar
27 * True to show the toolbar in the browser window.
28 *
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).
32 */
33 open: Ext.emptyFn,
34
35 /**
36 * Used to close the browser, if one is opened.
37 */
38 close: Ext.emptyFn
39 });