Skip to content

Instantly share code, notes, and snippets.

@veriojon
Created February 28, 2011 19:49
Show Gist options
  • Save veriojon/847897 to your computer and use it in GitHub Desktop.
Save veriojon/847897 to your computer and use it in GitHub Desktop.
excel display agin
var ExcelSuccessDialog = Ext.extend(Ext.Window, {
constructor: function(config) {
this.importsuccessForm = new Ext.FormPanel({
frame: true,
bodyStyle: 'padding: 10px 10px 0 10px;',
labelWidth: 50,
defaults: { anchor: '95%', allowBlank: false, msgTarget: 'side'},
items: [{
xtype: 'displayfield',
itemID: 'numnew',
value: config.num_new + ' asset(s) created'
},{
xtype: 'displayfield',
itemID: 'nummod',
value: config.num_mod + ' asset(s) modified'
}]
});
Ext.apply(this, {
title: 'Successfuly Imported Excel Document',
layout:'fit',
width:450,
height:200,
plain: true,
modal: true,
items: [this.importsuccessForm],
fbar: [
{text: 'OK', tabIndex: 5, handler: this.onOK, scope: this },
]
});
ExcelSuccessDialog.superclass.constructor.apply(this, arguments);
},
onOK: function() {
this.close();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment