Hey guys, I am working on a few tweaks to one of my websites and have a curious question. Can we pass the other "Non-built in" variables to the CJui add-ons? Here is what I mean.
We have the CJuiTabs function
$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,
),
));
Now lets say I want to use the "Method" from the JQuery site for "rotate". Is there a way to pass that information through the CJui function? I know I can write the raw JQuery script to do this without the CJui use, but would be nice to find a way to pass the non-wrapped methods and such to the CJui function.
Just for ease of code comparison, this would be the raw JQuery version using rotate
Is it as simple as using the CJui function to setup the main function, then write the script to just work off the “id” given to the CJui? Or will the CJui options overwrite the raw javascript? The only reason I ask this without just using this options is that I don’t want to go this route and find out there is some nuances that will cause this to not work.
Just for clarity this process works, but want to make sure its a good process to follow. Well I should add that is mostly works, the “rotate” and 5000 go through, but it seems the ‘false’ setting isn’t working.