Exemplo n.º 1
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     Portlet::begin(['title' => $this->title, 'subtitle' => $this->subtitle, 'buttons' => [Search::widget(['searchModel' => $this->searchModel])]]);
     echo GridView::widget(['id' => 'gridview-auth0-user-list', 'dataProvider' => $this->dataProvider, 'columns' => $this->columns, 'options' => ['class' => 'table-scrollable table-scrollable-borderless'], 'tableOptions' => ['class' => 'table table-hover table-light'], 'headerRowOptions' => ['class' => 'uppercase'], 'summary' => '']);
     Portlet::end();
 }
Exemplo n.º 2
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     Portlet::begin(['title' => $this->title, 'subtitle' => $this->subtitle, 'buttons' => [Search::widget(['searchModel' => $this->searchModel]), ModalButton::widget(['buttonLabel' => Html::tag('i', '', ['class' => 'fa fa-plus']), 'url' => Url::to(['tenant/ajax-create', 'pjaxId' => 'list-pjax']), 'tooltipTitle' => 'New Tenant', 'name' => 'new-tenant-button'])]]);
     echo GridView::widget(['id' => 'gridview-tenant', 'dataProvider' => $this->dataProvider, 'columns' => Tenant::column()->raw(['name'])->actions('{view} {ajax-update} {ajax-delete}')->all(), 'options' => ['class' => 'table-scrollable table-scrollable-borderless'], 'tableOptions' => ['class' => 'table table-hover table-light'], 'headerRowOptions' => ['class' => 'uppercase'], 'summary' => '']);
     Portlet::end();
 }