life2016/yii2-linkpager

There is no license information available for the latest version (1.0) of this package.

yii2 Widget for LinkPager

Installs: 982

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 1

Type:yii2-extension

1.0 2016-11-25 09:45 UTC

This package is not auto-updated.

Last update: 2024-05-25 18:25:38 UTC


README

LinkPager widgets for Yii Framework 2.0

Effect picture 1

Installation

The preferred way to install this extension is through composer.

Either run

 composer require  life2016/yii2-linkpager

or add

"life2016/yii2-linkpager": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

GridView options

 <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
        ],
        'pager' => [
            'class' => \components\widgets\LinkPager::className(),
            'template' => '{pageButtons} {customPage}',#默认显示数字+自定义输入框
        ],
    ]); ?>