]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('KitchenSink.view.draw.bounce.Bounce', {\r |
2 | extend: 'Ext.panel.Panel',\r | |
3 | xtype: 'draw-bounce',\r | |
4 | controller: 'draw-bounce',\r | |
5 | //<example>\r | |
6 | otherContent: [{\r | |
7 | type: 'Controller',\r | |
8 | path: 'classic/samples/view/draw/bounce/BounceController.js'\r | |
9 | }],\r | |
10 | //</example>\r | |
11 | \r | |
12 | requires: ['Ext.draw.Component'],\r | |
13 | \r | |
14 | layout: 'fit',\r | |
15 | width: 650,\r | |
16 | \r | |
17 | items: {\r | |
18 | xtype: 'draw',\r | |
19 | reference: 'draw',\r | |
20 | width: '100%',\r | |
21 | height: 500,\r | |
22 | sprites: [{\r | |
23 | type: 'image',\r | |
24 | src: Ext.getResourcePath('images/samples/sencha.png'),\r | |
25 | id: 'logo',\r | |
26 | x: 100,\r | |
27 | y: 100,\r | |
28 | width: 256,\r | |
29 | height: 107\r | |
30 | }]\r | |
31 | },\r | |
32 | \r | |
33 | listeners: {\r | |
34 | afterrender: 'onAfterRender',\r | |
35 | destroy: 'onDestroy'\r | |
36 | }\r | |
37 | \r | |
38 | });\r |