Hello,
thanks a lot for responding!
I found the following JS-Code:
o = {
xtype: 'modx-combo-browser'
,browserEl: 'modx-browser'
,prependPath: false
,prependUrl: false
,hideFiles: true
,fieldLabel: _('static_resource')
,name: 'content'
,id: 'modx-'+id+'-content'
,anchor: '100%'
,maxLength: 255
,value: ''
,listeners: {
'select':{
fn:function(data) {
if (data.url.substring(0,1) == '/') {
Ext.getCmp('modx-'+id+'-content').setValue(data.url.substring(1));
}
}
,scope:this
}
}
};
I think I have to define it similar to this (xtype, listener..), but I’m afraid I have no clue how to work with
these objects in extJS. I read some tutorials bit I didn’t get is: How do I generate an input field out of that?
Is there any show() method which returns the html/js stuff?
Thanks in advance,
Stetus