This topic is locked

Tabs manipulation problem on bootstrap

10/19/2016 1:02:28 AM
PHPRunner General questions
P
pamgeo author

Hi to all ,
I 've implement conditional hide/show tabs just like the examples at https://xlinesoft.com/phprunner/docs/how_to_work_withtab.htm , works perfect on v8.1 , on 9 with bootstrap layout I get an error myTabs.item is not a function.
My onload event function used is as follows
function stab(tindex) {

var tab = "GENERAL1",
myTabs = pageObj.tabs['tabGroup
' + tab],
tabIndex = 1, // 0 means first tab, 1 means second tab etc
tabToShow = myTabs.item( tabIndex );
tabToShow .get("boundingBox").show();
myTabs.selectChild( tabIndex );
}
Any ideas whats wrong?
Thanks

George

S
steveh 10/19/2016

There's a comment in the code saying that there will be a generic API added.
Not sure what the timescales are as I need this too as quite a bit of my code uses conditional tabs.

P
pamgeo author 10/24/2016

Just downloaded the latest version (Build 27326) , the problem still exists!
I wonder if there is a planned fix for this in the upcoming version's or should we stick with the non bootstrap styles...

S
steveh 10/25/2016

This was teh comment in RunnerPage.js that led me to believe it was a work in progress, I certainly need to hide tabs as I use that in almost all of my projects but I also need bootstrap.
/**

  • Init page's tab-elements

    */

    initTabs: function() {

    // TODO: API to work with this.tabs elements regardless what layout is used

    if ( !this.tabsPresented ) {

    return;

    }

S
steveh 11/29/2016

Can anyone post the code to do this on bootstrap and I'll see what needs to be done to plumb it in?