i4erkasov/yii2-link-pager-with-dots 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

i4erkasov/yii2-link-pager-with-dots

Composer 安装命令:

composer require i4erkasov/yii2-link-pager-with-dots

包简介

Supplements the standard generation of pagination buttons

README 文档

README

Latest Stable Version Total Downloads License

This is an extension of the default Yii2 LinkPager widget, which adds dots between page links.

Complements the standard button generation, e.g. "1 << 3 4 5 6 7 8 >> 10", with three-dot buttons
to create navigation, e.g.: "<< 1 ... 3 4 5 6 ... 10 >> "

Installation

The preferred way to install this extension is through composer.

Run the following command:

php composer.phar require --prefer-dist i4erkasov/yii2-link-pager-with-dots "*"

or add the following to the require section of your composer.json file:

"i4erkasov/yii2-link-pager-with-dots": "*"

Usage

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

The set of parameters is the same as for standard LinkPager

Added an additional parameter dotsClass responsible for css класс для точек ...

yii2-twig example:

{{ use('i4erkasov/LinkPagerWithDots/widget/linkPagerWithDots') }}
{{ linkPagerWithDots_widget({
    'pagination': dataProvider.pagination,
    'activePageCssClass': 'active',
    'disableCurrentPageButton': true,
    'prevPageCssClass': 'arrow--prev',
    'nextPageCssClass': 'arrow--next',
    'dotsClass': 'page--dots',
    'options':{
        'class': 'paging--list'
    },
    'linkContainerOptions':{
        'class': 'paging--page'
    },
    'linkOptions': {
        'class': 'paging--link'
    },
    'linkPrevNext': {
        'class': 'paging--arrow'
    }
}) | raw }}

License

This package is released under the MIT License. See LICENSE.md for details.

Contributing

You can contribute by submitting pull requests or creating new issues.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固