-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfgz.js
57 lines (56 loc) · 1.82 KB
/
fgz.js
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
Ext.Loader.setConfig({
enabled: true
});
Ext.require([
'Ext.grid.feature.Searching'
]);
Ext.tip.QuickTipManager.init();
Ext.application({
name: 'Fgz',
autoCreateViewport: false,
controllers: [
'Animals'
],
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: Ext.create('Ext.panel.Panel', {
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
items: [
Ext.create('Ext.Img', {
src: '/html/img/fgz.png'
}),
'->',
Ext.create('Ext.container.Container', {
id: 'topheader',
html: 'Zwierzęta',
margin: '0 15 0 0',
cls: 'topheader',
style: {
height: '90px',
lineHeight: '90px'
}
})]
}],
layout: 'fit',
items: [
Ext.create('Ext.tab.Panel', {
activeTab: 0,
bodyPadding: 10,
tabPosition: 'top',
items: {
xtype: 'animal.List'
},
listeners: {
beforetabchange: function(tabs, newTab, oldTab) {
//Ext.getCmp('topheader').update(newTab.title);
}
}
})
]
})
});
}
});