Hi All
This is a very nice and very useful extension. Thanks for building it
.
I had a few problems with it though that I thought I would report --
First of all the applyTo function seems to be overwriting a property that ext is expecting to use. In order for make the class work I had to pass in an applyTo value of null in its config.
Also I couldn't get the class to work with out lazily instantiating it.
So I added this line of code to the end of the class:
HTML Code:
Ext.reg('form-miscfield', Ext.form.MiscField);
Here is an example of what did and didn't work for me:
HTML Code:
Ext.onReady(function(){
//Works:
var testMiscField = {
xtype : 'form-miscfield',
fieldLabel: 'MiscField',
id: 'miscfield',
width: 160,
value: 'blah blah blah',
applyTo : null
},
form = new Ext.FormPanel({
items : [testMiscField],
renderTo: document.body
});
//Doesn't work:
var testMiscField = new Ext.form.MiscField({
xtype : 'form-miscfield',
fieldLabel: 'MiscField2',
id: 'miscfield2',
width: 160,
value: 'blah blah blah'
}),
form = new Ext.FormPanel({
items : [testMiscField],
renderTo: document.body
});
});
I should also note that I am using version 3.0.1 of ext
Keep up the good work.
Best Regards
Will Ferrer