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
| /**
| * @class Ext.org.OrgPanel
| * @extends Ext.panel.Panel
| *
| * This class combines the {@link Ext.org.AlbumTree AlbumTree} and {@link Ext.org.ImageView ImageView}
| * components into a {@link Ext.layout.container.Border Border} layout.
| */
| Ext.define('Ext.org.OrgPanel', {
| extend: 'Ext.panel.Panel',
| requires: 'Ext.layout.container.Border',
|
| layout: 'border',
|
| initComponent: function() {
| this.items = [
| {
| xtype: 'albumtree',
| region: 'west',
| padding: 5,
| width: 200
| },
| {
| xtype: 'panel',
| title: 'My Images',
| layout: 'fit',
| region: 'center',
| padding: '5 5 5 0',
| items: {
| xtype: 'imageview',
| /* (add a '/' at the front of this line to turn this on)
| listeners: {
| containermouseout: function (view, e) {
| Ext.log('ct', e.type);
| },
| containermouseover: function (view, e) {
| Ext.log('ct', e.type);
| },
| itemmouseleave: function (view, record, item, index, e) {
| Ext.log('item', e.type, ' id=', record.id);
| },
| itemmouseenter: function (view, record, item, index, e) {
| Ext.log('item', e.type, ' id=', record.id);
| }
| },/**/
| trackOver: true
| }
| }
| ];
|
| this.callParent(arguments);
| }
| });
|
|