Jump to content

Recommended Posts

Posted

Hi Mediv07.

Yes it is possible, there is a special plugin "TabReorderer", located in the directory:

"C:\Program Files\FMSoft\Framework\uniGUI\ext-4.2.1.883\examples\ux"

 

How to use?

Try...

 

1. You must include two files in your project BoxReorderer.js and TabReorderer.js: (in such sequence!)

Both files are located in the directory "C:\Program Files\FMSoft\Framework\uniGUI\ext-4.2.1.883\examples\ux".

Copy these files to the directory "../files" and include in your project:

files/BoxReorderer.js
files/TabReorderer.js

2. Further it is necessary to include this plugin:

function tabPanel.beforeInit(sender)
{
  sender.plugins = [Ext.create('Ext.ux.TabReorderer')];
}

post-906-0-26105100-1407822863_thumb.png

 

sample: http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/tabs/reorderable-tabs.html

 

Best regards.

  • Upvote 2
Posted

Hi Mediv07.

 

Yes it is possible, there is a special plugin "TabReorderer", located in the directory:

"C:\Program Files\FMSoft\Framework\uniGUI\ext-4.2.1.883\examples\ux"

 

How to use?

Try...

 

1. You must include two files in your project BoxReorderer.js and TabReorderer.js: (in such sequence!)

Both files are located in the directory "C:\Program Files\FMSoft\Framework\uniGUI\ext-4.2.1.883\examples\ux".

Copy these files to the directory "../files" and include in your project:

files/BoxReorderer.js
files/TabReorderer.js

2. Further it is necessary to include this plugin:

function tabPanel.beforeInit(sender)
{
  sender.plugins = [Ext.create('Ext.ux.TabReorderer')];
}

attachicon.gifTabReorderer.png

 

sample: http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/tabs/reorderable-tabs.html

 

Best regards.

 

 

Thanks works.

  • 4 weeks later...
  • 9 years later...
Posted
18 hours ago, AlexM123 said:

Where are these js files located?

Simply add to the initialization section.

initialization
  UniAddCSSLibrary('build/packages/ux/classic/classic/resources/ux-all.css', False, [upoFolderJS, upoPlatformDesktop]);
  UniAddJSLibrary('build/packages/ux/classic/ux.js', False, [upoFolderJS, upoPlatformDesktop]);

 

Posted

The init section should be placed in Main module?

Should TUniPageControl property Draggable.Enabled must be set to True?

 

After the property is set and when I am dragging any header, the TUniPageControl disappears ((

Posted

1. MainForm -> 

initialization
  UniAddCSSLibrary('build/packages/ux/classic/classic/resources/ux-all.css', False, [upoFolderJS, upoPlatformDesktop]);
  UniAddJSLibrary('build/packages/ux/classic/ux.js', False, [upoFolderJS, upoPlatformDesktop]);

2. 

function tabPanel.beforeInit(sender, config)
{
    config.plugins = [Ext.create('Ext.ux.TabReorderer', {})];
}

 

×
×
  • Create New...