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
| Ext.define('Neptune.view.combination.PanelTabToolbarGrid', function() {
| function getConfig(frame) {
| return {
| xtype: 'panel',
| width: 600,
| height: 500,
| frame: frame,
| title: 'Panel Tab Toolbar Grid' + (frame ? ' Framed' : ''),
| layout: 'fit',
| items: [
| {
| xtype: 'tabpanel',
| border: frame ? 1 : 0,
| items: [
| {
| title: 'Active Tab',
| xtype: 'basicGrid',
| border: 0,
| dockedItems: [{
| xtype: 'pagingtoolbar',
| store: 'Company',
| dock: 'bottom',
| displayInfo: true
| }, {
| dock: 'top',
| xtype: 'toolbar',
| items: [
| { xtype: 'smallButton', text: 'File' },
| { xtype: 'smallMenuButton', text: 'Edit', icon: true },
| { xtype: 'smallSplitButton', text: 'View' },
| '->',
| { xtype: 'searchField'}
| ]
| }]
| },
| { title: 'Inactive Tab', html: NeptuneAppData.dummyText },
| { title: 'Disabled Tab', disabled: true, html: NeptuneAppData.dummyText }
| ]
| }
| ],
| buttons: [
| { text: 'Submit' },
| { text: 'Cancel' }
| ]
| };
| }
| return {
| extend: 'Ext.container.Container',
| xtype: 'panelTabToolbarGrid',
| id: 'panelTabToolbarGrid',
|
| layout: {
| type: 'table',
| columns: 2,
| tdAttrs: { style: 'padding: 7px; vertical-align: top;' }
| },
|
| items: [
| getConfig(),
| getConfig(true)
| ]
| };
| });
|
|