PDA

View Full Version : How to apply TabReorderer plugin into Ext.tab.Panel in SA 4.1. ?



DORFIN
23 Dec 2016, 4:38 AM
I tried to use TabReorderer plugin but when I put in "requires": "Ext.ux.TabReorderer" there is an error during compilation:
com.sencha.exceptions.ExBuild: Failed to find any files for ...app.js::ClassRequire::Ext.ux.TabReorderer

I checked ant I can find the file with class definition inside my workspace here :
"ext\packages\ux\classic\src\TabReorderer.js"

If it worked I planned to "processConfig" of my TabPanel and apply this :
{
plugins: Ext.create('Ext.ux.TabReorderer')
}

Has anyone tried to do this ? What am I doing wrong.

petr.vecera
2 Jan 2017, 2:14 AM
Hi

It's in the UX packages, so you have to add UX to the requires in the app.json.

If you are on the SA 4.1 the steps:

# Add TabPanel
# Add processconfig
# Set the tabreorder plugin

processMyTabPanel: function(config) {
config.plugins = {ptype: 'tabreorderer'};
}


# Add ux to the requires -> Click on Library in the resources (Project Inspector) -> Find config Requires , add UX

55719

Regards
Petr

petr.vecera
12 Jan 2017, 12:00 PM
FYI Tab Reorder plugin will be by default in SA 4.1.2
http://docs.sencha.com/extjs/6.2.0/classic/Ext.ux.TabReorderer.html

DORFIN
30 Jan 2017, 8:58 AM
Works perfect. Thank You!