this.getForm is not a function
app.panel.Home = function(config) {
config = config || {};
Ext.apply(config,{
id: 'mycomponent-panel-container'
,url: app.config.connectorUrl
,baseParams: {
action: 'mgr/mycomponent/mycomponent'
}
,layout: 'fit'
,items: [
{
id: 'the-real-form'
,xtype: 'modx-formpanel'
,layout: 'form'
,border: false
,fileUpload: true
,baseCls: 'modx-formpanel'
,cls:'main-wrapper'
,items: [
{
xtype: 'textfield'
,inputType: 'file'
,fieldLabel: 'upload'
,name: 'csv-file'
,id: 'csv-file'
,allowBlank: false
,width: 300
,labelSeparator: ''
,anchor: '100%'
}
,{
xtype: 'checkbox'
,fieldLabel: 'chk1'
,name: 'chk1'
,id: 'chk1'
,width: 300
,labelSeparator: ''
,anchor: '100%'
}
,{
xtype: 'button'
,text: 'button'
,name: 'button'
,id: 'button'
,scope: this
,handler: function() {
var form = this.getForm();
console.log("form values: %o", form.getValues());
}
}
]
}
]
});
app.panel.Home.superclass.constructor.call(this,config);
};
Ext.extend(app.panel.Home,MODx.Panel);
Ext.reg('mycomponent-panel-home',app.panel.Home);
{
xtype: 'accordion'
,items: [{
xtype: 'my-formpanel-1'
},{
xtype: 'my-formpanel-2'
/* etc */
}]
}
a.header.addClass is not a function http://act.caliope/manager/assets/ext3/ext-all.js Line 7
ImportUsers.panel.SampleForm = function(config) {
config = config || {};
Ext.apply(config,{
id: 'x-sample-form'
,header: false
,border: false
,items: [
{
xtype: 'button'
,text: 'button'
,name: 'export-button'
,id: 'export-button'
,scope: this
,handler: function() {
alert('hello');
}
}
]
});
ImportUsers.panel.SampleForm.superclass.constructor.call(this,config);
}
Ext.extend(ImportUsers.panel.SampleForm,MODx.FormPanel);
Ext.reg('x-sample-form',ImportUsers.panel.SampleForm);
ImportUsers.panel.Home = function(config) {
config = config || {};
Ext.apply(config,{
id: 'import-users-panel-container'
,url: ImportUsers.config.connectorUrl
,items: [
{
html: '<h2>Heading</h2>'
,id: 'import-users-header'
,cls: 'modx-page-header'
,border: false
,anchor: '100%'
}
,{
id: 'import-users-panel-accordion'
,layout: 'accordion'
,defaults: {
bodyStyle: 'padding:15px'
}
,layoutConfig: {
titleCollapse: true
,animate: true
,activeOnTop: false
,fill: false
}
,items: [
{
xtype: 'x-sample-form'
}
]
}
]
});
ImportUsers.panel.Home.superclass.constructor.call(this,config);
};
Ext.extend(ImportUsers.panel.Home,MODx.Panel);
Ext.reg('importusers-panel-home',ImportUsers.panel.Home);
ImportUsers.panel.Home.superclass.constructor.call(this,config);