16 parent::__construct(
$js);
25 $jsCode=
"$('".$this->attachTo.
" a').click(function (event) { event.preventDefault();$(this).tab('show');});";
26 $this->jquery_code_for_compile []=$jsCode;
32 $this->jquery_code_for_compile []=
' $(function () {$("'.$this->attachTo.
' a").tab("show");});';
42 return $this->
addEvent(
"show.bs.tab", $jsCode);
52 return $this->
addEvent(
"shown.bs.tab", $jsCode);
62 return $this->
addEvent(
"hide.bs.tab", $jsCode);
72 return $this->
addEvent(
"hidden.bs.tab", $jsCode);
Composant Twitter Bootstrap Tab.
onShow($jsCode)
This event fires on tab show, but before the new tab has been shown.
onHide($jsCode)
This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden).
onHidden($jsCode)
This event fires after a new tab is shown (and thus the previous active tab is hidden).
onShown($jsCode)
This event fires on tab show after a tab has been shown.
addEvent($event, $jsCode)