Hello,
I tried the following but hasn’t worked.
I have included the SuperBoxSelect.js file in the CMP, I guess this is the long route of doing it? Then in a grid.js I have this code
Staffmembers.SuperBoxSelect = function (config) {
config = config || {};
Ext.applyIf(config, {
xtype:'superboxselect'
,transform: 'test'
,triggerAction: 'all'
,mode: 'local'
,extraItemCls: 'x-tag'
,width: 350
,fields: ['role']
,displayField: "role"
,valueField: "role"
});
Staffmembers.SuperBoxSelect.superclass.constructor.call(this, config);
};
Ext.extend(Staffmembers.SuperBoxSelect, Ext.ux.form.SuperBoxSelect);
Ext.reg('SuperBoxSelect', Staffmembers.SuperBoxSelect);
Then I call the xtype using
{
,xtype: 'SuperBoxSelect'
,fieldLabel: _('staffmember.role')
,name: 'role'
,width: 400
}
I’m getting use to CMPs but not quite there with extending extjs quite yet! No doubt completely wrong but some pointers should get me there. I did check the listbox-multiple.tpl, still failed!