Jump to content

tab scroller menu for unipagecontrol


Recommended Posts

Hello,

i share with you a method for adding a scroller menu for unipage control

image.png.a93943deb4f22783ba11cf2f1ca63fab.png

download the join file plugin_tabscrollermenu.zip

uncompress in a directory where you have your application. for me it is in assets/plugin

in unimainmodule register the js file and css file of the plugin

uses ....
  uniGUIClasses,uniguitypes;
....
initialization
  RegisterMainModuleClass(TUniMainModule);
  UniAddCSSLibrary('assets/plugin/TabScrollerMenu.css', False, [upoPlatformDesktop]);
  UniAddJSLibrary('assets/plugin/TabScrollerMenu.js', False, [upoPlatformDesktop]);

in your unipagecontrol->unievents->Ext.tab.Panel[TabPanel] add :

function tabPanel.beforeInit(sender, config)
{
    sender.plugins = [ 'tabscrollermenu'];
}

note : if the property of a unitabsheet tabvisible = false then the tabsheet will not be in the menu

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...