Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Chetock on Oct 28, 2008 08:29
open dhtmlx forum
Initialize TabBar object from HTML structure - enableAutoReSize

When I initialize TabBar object from HTML structure, how can I get a handle on it to set other methods like enableAutoReSize()?
Answer posted by Support on Oct 28, 2008 09:25
You can use onbeforeinit attribute in order to set function before tabbar initialization:
 
<div id="a_tabbar"  onbeforeinit="doBeforeInit()"  class="dhtmlxTabBar" ...>...

</div>

<script>
function doBeforeInit(){
a_tabbar.enableAutoSize(...);
}
</script>