PDA

View Full Version : Having trouble getting the BoxReorderer to work.



Maxeta
29 Oct 2013, 5:50 AM
Here is my code:


Ext.define('appName.view.vTaskbar', {
extend: 'Ext.toolbar.Toolbar',
views: ['vTaskbar'],


requires: ['Ext.ux.BoxReorderer'],


alias: 'widget.vTaskbar',
xtype: 'Taskbar',


defaults: {
reorderable: true
},
plugins: Ext.create('Ext.ux.BoxReorderer', {}),
items: [
{
text: 'Main Menu',
cls: 'x-btn-default-small-over',
reorderable: false
}
],


initComponent: function () {
var me = this;
me.callParent();
clog('vTaskbar.initComponent()');
}


});


But I get an "object expected error" when I try to run my project, with a reference to:


function anonymous(c,a) {
return new c(a[0])
}


P.S. I can't seem to find the BoxReorderer.js file anywhere? In fact I can't find a ux directory anywhere either... how should I be referencing the BoxReorderer plugin with ExtJS 4.2.2?


UPDATE: Fixed

So I finally located the ux directory under the ExtJS examples directory, I figured it was supposed to be under the src directory. I add it to my project and now everything is working as expected.

scottmartin
1 Nov 2013, 5:44 AM
UPDATE: Fixed

Thank you for the update.

Scott