21 parent::__construct(
$js);
39 if ($index>0&&$index<
sizeof($this->tabs))
40 return $this->tabs [$index];
43 public function show($index) {
44 $this->tabs [$index]->show();
54 public function onShow($index, $jsCode) {
55 $tab=$this->
getTab($index);
57 return $tab->onShow($jsCode);
66 public function onShown($index, $jsCode) {
67 $tab=$this->
getTab($index);
69 return $tab->onShown($jsCode);
78 public function onHide($index, $jsCode) {
79 $tab=$this->
getTab($index);
81 return $tab->onShow($jsCode);
91 $tab=$this->
getTab($index);
93 return $tab->onShow($jsCode);
Composant Twitter Bootstrap Tab.
onShow($index, $jsCode)
This event fires on tab show, but before the new tab has been shown.
onHidden($index, $jsCode)
This event fires after a new tab is shown (and thus the previous active tab is hidden).
onHide($index, $jsCode)
This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden).
onShown($index, $jsCode)
This event fires on tab show after a tab has been shown.