Class type Ext_app_Application.configs


class type configs = object .. end
Inherits
method appFolder : Js.js_string Js.t Js.prop

The path to the directory which contains all application's classes. This path will be registered via Ext.Loader.setPath for the namespace specified in the name config.

Defaults to: 'app'

method appProperty : Js.js_string Js.t Js.prop

The name of a property to be assigned to the main namespace to gain a reference to this application. Can be set to an empty value to prevent the reference from being created

Ext.application({
    name: 'MyApp',
    appProperty: 'myProp',

    launch: function() {
        console.log(MyApp.myProp === this);
    }
});

Defaults to: 'app'

method autoCreateViewport : bool Js.t Js.prop

True to automatically load and instantiate AppName.view.Viewport before firing the launch function.

Defaults to: false

method controllers : 'a. 'a Js.t Js.prop

Names of controllers that the app uses.


method enableQuickTips : bool Js.t Js.prop

True to automatically set up Ext.tip.QuickTip support.

Defaults to: true

method name : Js.js_string Js.t Js.prop

The name of your application. This will also be the namespace for your views, controllers models and stores. Don't use spaces or special characters in the name. Application name is mandatory.


method namespaces : 'b. 'b Js.t Js.prop

The list of namespace prefixes used in the application to resolve dependencies like Views and Stores:

 Ext.application({
     name: 'MyApp',

     namespaces: ['Common.code'],

     controllers: [ 'Common.code.controller.Foo', 'Bar' ]
 });

 Ext.define('Common.code.controller.Foo', {
     extend: 'Ext.app.Controller',

     models: ['Foo'],    // Loads Common.code.model.Foo
     views:  ['Bar']     // Loads Common.code.view.Bar
 });

 Ext.define('MyApp.controller.Bar', {
     extend: 'Ext.app.Controller',

     models: ['Foo'],    // Loads MyApp.model.Foo
     views:  ['Bar']     // Loads MyApp.view.Bar
 });

You don't need to include main namespace (MyApp), it will be added to the list automatically.

Defaults to: []

method paths : 'c. 'c Js.t Js.prop

Additional load paths to add to Ext.Loader. See Ext.Loader.paths config for more details.


method scope : 'd. 'd Js.t Js.prop

The scope to execute the launch function in. Defaults to the Application instance.


method launch : ((< appFolder : Js.js_string Js.t Js.prop;
appProperty : Js.js_string Js.t Js.prop;
autoCreateViewport : bool Js.t Js.prop;
controllers : 'a. 'a Js.t Js.prop; enableQuickTips : bool Js.t Js.prop;
id : Js.js_string Js.t Js.prop;
init : 'g. ('f Js.t, 'g Js.t -> unit) Js.meth_callback Js.writeonly_prop;
launch : 'e; listeners : 'h. 'h Js.t Js.prop;
models : 'i. 'i Js.t Js.prop; name : Js.js_string Js.t Js.prop;
namespaces : 'b. 'b Js.t Js.prop;
onLaunch : 'j.
('f Js.t, 'j Js.t -> unit) Js.meth_callback
Js.writeonly_prop;
paths : 'c. 'c Js.t Js.prop; refs : 'k. 'k Js.t Js.js_array Js.t Js.prop;
scope : 'd. 'd Js.t Js.prop; stores : 'l. 'l Js.t Js.prop;
views : 'm. 'm Js.t Js.prop; .. >
as 'f)
Js.t, Js.js_string Js.t -> bool Js.t)
Js.meth_callback Js.writeonly_prop as 'e
See method t.launch