Beispiel #1
0
echo kartik\tabs\TabsX::widget(['items' => $list, 'encodeLabels' => false]);
//\yii\widgets\Pjax::end();
/*
$this->widget('zii.widgets.jui.CJuiTabs', array(
	    'tabs' => $list,
            'headerTemplate' => '<li><a href="{url}" title="{title}">{title}</a></li>',
	    // additional javascript options for the tabs plugin
	    'options' => array(
                'selected'=>$type,
                'class'=>'nav nav-tabs',
	        //'collapsible' => true,
	    ),
	));
*/
app\widgets\MiniForm::end();
echo yii\helpers\Html::hiddenInput("accType", $type);
?>

<?php 
$java = <<<JS

        
        \$(document).on("click", '#sidebar > ul > li  > a',
            function (e) {
                 e.preventDefault();
                console.log(\$(".nav-tabs > li.active > a").data('id'));
                window.location = baseAddress +"/accounts/create/" + \$(".nav-tabs > li.active > a").data('id');
                //return false;

            }
    );