By jacoblane on
I have been able to create a tabbed block using the js tabs.module, but I don't know how to add effects (fade and slide) to my tabs.
Can anyone help?
The code I added to my block is as follows:
$form = array();
$view_args ='';
$limit_cal = 100;
$limit_table = 10;
$view1 = views_build_view('block', views_get_view('firstview'), $view_args, true, $limit_cal);
$view2 = views_build_view('block', views_get_view('secondview'), $view_args, true, $limit_table);
$form['Tab1'] = array(
'#type' => 'tabset',
);
$form['Tab1']['tab1'] = array(
'#type' => 'tabpage',
'#title' => t('firstview'),
'#content' => t($view1),
);
$form['Tab1']['tab2'] = array(
'#type' => 'tabpage',
'#title' => t(secondview'),
'#content' => t($view2)
);
return = tabs_render($form);
From http://stilbuero.de/jquery/tabs/ it seems as though I should be able to add effects using something like:
$('#container').tabs({ fxFade: true, fxSpeed: 'fast' });
But I have no idea where this would go.
Any suggestions?
PS. if you hadn't already noticed, I am new to all this.
Comments
I've opened an issue
http://drupal.org/node/137722
Thanks
Thanks