Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define('MyApp.view.MyWindow1', {
- extend: 'Ext.window.Window',
- height: 250,
- width: 400,
- layout: {
- type: 'absolute'
- },
- title: 'My Window',
- initComponent: function() {
- var me = this;
- Ext.applyIf(me, {
- items: [
- {
- xtype: 'button',
- x: 300,
- y: 170,
- text: 'MyButton',
- listeners: {
- click: {
- fn: me.onButtonClick,
- scope: me
- }
- }
- },
- {
- xtype: 'textfield',
- x: 111,
- y: 80,
- fieldLabel: 'Label'
- }
- ]
- });
- me.callParent(arguments);
- },
- onButtonClick: function(button, e, eOpts) {
- alert("Foo");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement