How can I control a change of tab event when using TbTabs in Yii Bootter?
Here is my code (but it didn't alert when I have changed tab):
$this->widget('bootstrap.widgets.TbTabs', array(
'type' => 'tabs',
'tabs' => array(
array('label' => 'Trainer Modules', 'content' => 'content tab 1',
array('label' => 'Default Modules', 'content' => 'content tab 2',
),
'events' => array(
'change' => "js:function(){alert('123');}"
)
));