Results 1 to 4 of 4

Thread: How to apply TabReorderer plugin into Ext.tab.Panel in SA 4.1. ?

  1. #1
    Sencha Premium User
    Join Date
    Feb 2016
    Posts
    7

    Lightbulb Answered: How to apply TabReorderer plugin into Ext.tab.Panel in SA 4.1. ?

    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.

  2. 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
    Code:
        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

    Attachment 55719

    Regards
    Petr

  3. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    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
    Code:
        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

    6Ndfa19giprZUofWkELLp8Oui9Oml.jpg

    Regards
    Petr

  4. #3
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    FYI Tab Reorder plugin will be by default in SA 4.1.2
    http://docs.sencha.com/extjs/6.2.0/c...Reorderer.html

  5. #4
    Sencha Premium User
    Join Date
    Feb 2016
    Posts
    7

    Default

    Works perfect. Thank You!

Similar Threads

  1. Replies: 1
    Last Post: 4 Sep 2012, 4:58 PM
  2. Using TabReorderer as a plugin
    By Flipper in forum Ext: Q&A
    Replies: 3
    Last Post: 1 Jun 2012, 12:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •