Skip to content

Instantly share code, notes, and snippets.

@stan229
Created November 9, 2011 18:30
Show Gist options
  • Save stan229/1352382 to your computer and use it in GitHub Desktop.
Save stan229/1352382 to your computer and use it in GitHub Desktop.
Ext.setup({
onReady : function() {
var popup = Ext.create('Ext.Panel', {
modal : true,
centered : true,
width : 300,
height : 400,
layout : 'fit',
hideOnMaskTap:false,
items : [{
docked : 'top',
xtype : 'toolbar',
title : 'Add Borrower'
}, {
xtype : 'formpanel',
listeners : {
'> field' : {
action : function(field, e, opts) {
console.log(field)
}
}
},
items : [{
xtype : 'textfield',
name : 'hello',
label : 'hello'
}, {
xtype : 'textfield',
name : 'world',
label : 'world'
}]
}],
scrollable : true
});
popup.show();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment