Menu

Two or more Tabs

Mlaura
2011-05-03
2012-12-19
  • Mlaura

    Mlaura - 2011-05-03

    Hello everybody,

    I would like to add a new Tab in the in the browser's frame. I follow the instruction to add one to display Nagios informations, but if I would like add one more for my internal purpose what I can do? I can not call 2 or 3 time the DisplayBareRelations in the same abstract class InfrastructureCI extends Device.
    Thanks a lot in advance for your help
    Laura

     
  • Romain Quetiez

    Romain Quetiez - 2011-05-03

    Hi,

    In the same single implementation of

    DisplayBareRelations
    

    , you may create as many tabs as needed:

    function DisplayBareRelations(WebPage $oPage, $bEditMode = false)
    {
        parent::DisplayBareRelations($oPage, $bEditMode);
        if (!$bEditMode)
        {
            $oPage->SetCurrentTab('My Tab 1');
            $oPage->p("Here is my custom tab");
            $oPage->SetCurrentTab('My Tab 2');
            $oPage->p("Here is another tab");
        }
    }
    

    Regards,
    Romain

     
  • Mlaura

    Mlaura - 2011-05-03

    Hi Romain,

    I did not understand that the declaration/use of  $oPage could be multiple.
    Thanks a lot
    Laura

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.