Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Evgeny Borzenkov on Jul 18, 2008 03:31
open dhtmlx forum
dhtmlx Tabbar showing inorrect style

we set style "silver" for Tabbar, but when it is loaded it is not showing this style, and only after we drift mouse over tabs it is set silver style
Answer posted by Support on Jul 18, 2008 03:40
Please be sure that style was defined ( tabbar.setStyle ) before adding tabs by addTab command or loading info from XML.
Answer posted by Evgeny on Jul 18, 2008 04:05
I have :

function setOnInitTab(sTab)
{
    sTab.setStyle("silver");
    ShowMainGrid(0);
}

<div id="MainTabbar" enableforcehiding="true" margin="0" class="dhtmlxTabBar" oninit="setOnInitTab(MainTabbar)"
                        imgpath="js/dhtmlxTab/codebase/imgs/" skincolors="#FCFBFC,#F4F3EE" style="height: 600px;
                        width: 100%; text-align: left;">
                        <div id="tab_AccountInfo" name="Account Info" width="125">
                        </div>
                        <div id="tab_AccountOwner" name="Account Owner" width="125">
                        </div>
                        <div id="tab_MailingAddress" name="Mailing Address" width="125">
                        </div>
                        <div id="tab_Actions" name="Actions" width="125">
                        </div>
                        <div id="tab_Notes" name="Notes" width="125">
                        </div>
                        <div id="tab_History" name="Account History" width="125">
                        </div>
                        <div id="tab_PaymentPlan" name="PaymentPlan" width="125">
                        </div>
                        <div id="tab_Bankruptcy" name="Bankruptcy" width="125">
                        </div>
                        <div id="tab_Document" name="Documents" width="125">
                        </div>
                    </div>
Answer posted by Support on Jul 18, 2008 04:18
Just use
<div id="MainTabbar" enableforcehiding="true"  tabstyle="silver" ...