I’m using Tab X i want to view a GridView widget in each tab here my code in view :
<?php
%tab1Grid =GridView::widget([
'dataProvider' =>$DataProvider,
'filterModel' => $SearchModel,
'columns' => [
'id',
'submitted_dt',
'submitted_by',
],
]);
%tab2Grid =GridView::widget([
'dataProvider' =>$Data2Provider,
'filterModel' => $Search2Model,
'columns' => [
'user_id',
'name',
'age',
],
]);
$items = [
[
'label'=>'<i class="glyphicon glyphicon-home"></i> Home',
'content' =>$tab1Grid,
'active'=>true
],
[
'label'=>'<i class="glyphicon glyphicon-user"></i> User',
'content' =>$tab2Grid,
],
];
echo TabsX::widget([
'items'=>$items,
'position'=>TabsX::POS_LEFT,
'encodeLabels'=>false
]);
?>
The problem is tables are appearing at the bottom of page and alot of white space on top so i conclude that these widgets are there at the back of tabs how can i view those widget in each tab without been seen before the tabs ??