Questions tagged [cjuitabs]

CJuiTabs is Yii PHP Framework class which displays a tabs widget. CJuiTabs encapsulates the JUI tabs plugin.

Definition:

CJuiTabs is Yii PHP Framework class which displays a tabs widget.

CJuiTabs encapsulates the JUI tabs plugin.

Example Usage:

$this->widget('zii.widgets.jui.CJuiTabs',array(
    'tabs'=>array(
        'StaticTab 1'=>'Content for tab 1',
        'StaticTab 2'=>array('content'=>'Content for tab 2', 'id'=>'tab2'),
        // panel 3 contains the content rendered by a partial view
        'AjaxTab'=>array('ajax'=>$ajaxUrl),
    ),
    // additional javascript options for the tabs plugin
    'options'=>array(
        'collapsible'=>true,
    ),
));

Important Links:

3 questions
1
vote
3 answers

How can I pass output of a widget as content in CJuiTabs in Yii?

How can I pass output of a widget as content in CJuiTabs in Yii? Here the code I tried and get error: $this->widget('zii.widgets.jui.CJuiTabs',array( 'tabs'=>array( 'Tab1'=> array('content' => $this->widget('zii.widgets.CListView', array( …
hd.
  • 17,596
  • 46
  • 115
  • 165
0
votes
1 answer

how to show preloader while loading content using yii CJuitabs

I am trying to show a preloader when I press a tab in the CJuitabs but it does not show the prealoader. Anything I am doing wrong?
widget('zii.widgets.jui.CJuiTabs', array( 'tabs' => array( 'Bundle (' .…
zeid10
  • 511
  • 8
  • 28
0
votes
2 answers

Display CJUI tabs based on condition in Yii

Iam using CJUI tabs for my tab display. I would like to implement a condition based display of tabs based on the user logged in. I have 2 user admin and customer. If customer is logged in I need to hide a tab. Since customer has no permission to…
anu
  • 458
  • 2
  • 13
  • 36