Jui Tabs Disable




$this->widget('zii.widgets.jui.CJuiTabs', array(

    'tabs'=>array(

        'Static tab'=>'Static content',

        '[b]Render tab[/b]'=>$this->renderPartial('one',null,true),

        'Ajax tab'=>array('ajax'=>array('ajaxContent','view'=>'_content2')),

    ),

    'options'=>array(

        'collapsible'=>true,

        'selected'=>2,

    ),

    'htmlOptions'=>array(

        'style'=>'width:500px;'

    ),

));



From the above code how to disable the tab ‘Render tab’




$this->widget('zii.widgets.jui.CJuiTabs', array(

    'tabs'=>array(

        'Static tab'=>'Static content',

        '[b]Render tab[/b]'=>$this->renderPartial('one',null,true),

        'Ajax tab'=>array('ajax'=>array('ajaxContent','view'=>'_content2')),

    ),

    'options'=>array(

        'collapsible'=>true,

        'selected'=>2,

        'disabled' => 2,

    ),

    'htmlOptions'=>array(

        'style'=>'width:500px;'

    ),

));



HI it doesnt work fine see the screen shot and my code








$this->widget('zii.widgets.jui.CJuiTabs', array(

    'tabs'=>array(

        'Static tab'=>'Static content',

        '[b]Render tab[/b]'=>'test',

        'Ajax tab'=>array('ajax'=>array('ajaxContent','view'=>'_content2')),

    ),

    'options'=>array(

        'collapsible'=>true,

        'selected'=>0,

       'disabled' => 1,

    ),

    'htmlOptions'=>array(

        'style'=>'width:500px;'

    ),

));




Hi!!

For disable tabs:

$tabs_disabled = array(2);

$this->widget(‘zii.widgets.jui.CJuiTabs’, array(

    'id' => 'tabs_options',


    'tabs' => $tabs,


    'options' => array(


        'disabled'=> $tabs_disabled,


        'collapsible' => true,


    ),


));

Pass on options => disable an array with index of tabs for disable.

Please, excuse my bad english.