File: extjs-properties.xml

package info (click to toggle)
libnb-platform18-java 12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 729,800 kB
  • sloc: java: 5,059,097; xml: 574,432; php: 78,788; javascript: 29,039; ansic: 10,278; sh: 6,386; cpp: 4,612; jsp: 3,643; sql: 1,097; makefile: 540; objc: 288; perl: 277; haskell: 93
file content (159 lines) | stat: -rw-r--r-- 5,287 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->


<ext>
    <object name="Ext.application">
        <property name="name" type="String">
            <doc>
                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.
            </doc>
            <template>
                <![CDATA[
                    '${cursor}'
                ]]>
            </template>
        </property>
        <property name="controllers" type="String[]">
            <doc>
                Names of controllers that the app uses.
            </doc>
            <template>
                <![CDATA[
                    ['${cursor}']
                ]]>
            </template>
        </property>
        <property name="scope" type="Object">
            <doc>
                The scope to execute the launch function in.
            </doc>
        </property>
        <property name="enableQuickTips" type="Boolean">
            <doc>
                True to automatically set up Ext.tip.QuickTip support.
            </doc>
        </property>
        <property name="appFolder" type="String">
            <doc>
                <![CDATA[ The path to the directory which contains all application's classes.
                This path will be registered via {@link Ext.Loader#setPath} for the namespace specified
                in the {@link #name name} config. ]]>
            </doc>
        </property>
        <property name="appProperty" type="String">
            <doc>
                <![CDATA[
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
<pre>
Ext.application({
    name: 'MyApp',
    appProperty: 'myProp',

    launch: function() {
        console.log(MyApp.myProp === this);
    }
});
</pre>
     ]]>
            </doc>
        </property>
        <property name="namespaces" type="String[]">
            <doc>
                <![CDATA[
The list of namespace prefixes used in the application to resolve dependencies
like Views and Stores:

<pre> 
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
});
</pre>

You don't need to include main namespace (MyApp), it will be added to the list
automatically.
                ]]>
            </doc>
        </property>
        <property name="autoCreateViewport" type="Boolean">
            <doc>
                True to automatically load and instantiate AppName.view.Viewport before firing the launch function.
            </doc>
        </property>
        <property name="path" type="Object">
            <doc>
                <![CDATA[
                Additional load paths to add to Ext.Loader.
                See {@link Ext.Loader#paths} config for more details.
                ]]>
            </doc>
        </property>
        <property name="launch" type="Function">
            <doc>
                <![CDATA[
      Called automatically when the page has completely loaded. This is an empty function that should be
      overridden by each application that needs to take action on page load.
      @param {String} profile The detected application profile
      @return {Boolean} By default, the Application will dispatch to the configured startup controller and
      action immediately after running the launch function. Return false to prevent this behavior.
                ]]>
            </doc>
            <template><![CDATA[function (profile) {
    // This is fired as soon as the page is ready
    ${cursor}
}]]>
            </template>
        </property>
    </object>
    <object name="Ext.define">
        <property name="extend">
            <template>'${cursor}'</template>
        </property>
        <property name="alias">
            <template>'${cursor}'</template>
        </property>
        <property name="store">
            <template>'${cursor}'</template>
        </property>
    </object>
</ext>