/ext-4.1.0_b3/examples/organizer/OrgPanel.js
https://bitbucket.org/srogerf/javascript · JavaScript · 52 lines · 27 code · 3 blank · 22 comment · 0 complexity · e892d733b5d5ce77eb9c9d08d003cf07 MD5 · raw file
- /**
- * @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);
- }
- });