/** * Multilingual support */ public function init() { parent::init(); $this->text = $this->text ? $this->text : GridPageSize::t('app', 'Records per page'); }
*/ use webvimark\extensions\GridPageSize\GridPageSize; use yii\helpers\Html; use yii\web\View; ?> <div class="form-inline pull-right"> <?php if ($this->context->enableClearFilters) { ?> <span style="display: none" id="<?php echo ltrim($this->context->gridId, '#'); ?> -clear-filters-btn" class="btn btn-sm btn-default"> <?php echo GridPageSize::t('app', 'Clear filters'); ?> </span> <?php } ?> <?php echo $this->context->text; ?> <?php echo Html::dropDownList('grid-page-size', \Yii::$app->request->cookies->getValue('_grid_page_size', 20), $this->context->dropDownOptions, ['class' => 'form-control input-sm']); ?> </div>