code i used here:
var DefaultDialog = function(config) {
var config = config || {};
var defConfig = {
title: 'Default',
height: 130,
width: 250,
shadow: true,
modal: true,
draggable:true,
fixedcenter:true,
collapsible: false,
closable: true,
resizable:false
};
Ext.applyIf(config, defConfig);
var el = Ext.DomHelper.append(document.body, {tag: 'div'});
DefaultDialog.superclass.constructor.call(this, el, config);
};
Ext.extend(DefaultDialog, Ext.BasicDialog);
dlg = new DefaultDialog({title: 'First Dialog', width: 300});
console.log(dlg);
that got an error
"
sp is undefined
[IMG]chrome://firebug/content/blank.gif[/IMG] spp = sp.prototype;
"
in ext-basic-debug.js
it seems there does not exit a supper class called Ext.BasicDialog.
i don't understand, hope someone give an explanation, and a correction is better.
thanks a lot.