2017 © Pedro Peláez
 

yii2-extension yii2-ajax-pager

jQuery contextMenu plugin & polyfill for yii2

image

skeeks/yii2-ajax-pager

jQuery contextMenu plugin & polyfill for yii2

  • Monday, May 21, 2018
  • by skeeks-semenov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 25 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Ajax link pager

Ajax подгрузка страниц + js пагинация, (*1)

Latest Stable Version Total Downloads, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist skeeks/yii2-ajax-pager "*"

or add, (*5)

"skeeks/skeeks/yii2-ajax-pager": "*"

Examples

http://www.v3toys.ru/detskij-transport/ehlektromobili/, (*6)


echo \yii\widgets\ListView::widget([ //... 'pager' => [ 'id' => 'sx_v3toys_paginator', 'class' => \skeeks\yii2\ajaxpager\AjaxLinkPager::class, 'noneLeftText' => '', 'item' => '.catalog-list__item', 'container' => '.catalog-list', 'paginationSelector' => '.catalog-list .pagination', 'triggerTemplate' => ' ', 'triggerText' => 'Показать еще', 'spClientOptions' => [ 'listStyle' => 'paging-list', 'prevText' => '', 'nextText' => '', 'edges' => '1', ], 'spClientMobileOptions' => [ 'listStyle' => 'paging-list', 'prevText' => '', 'nextText' => '', 'displayedPages' => '1', ], 'eventOnPageChange' => new \yii\web\JsExpression(<<<JS function(pageNum, scrollOffset, url) { sx.App.jLastProduct = jQuery(".catalog-list__item:last"); var getCurrentPage = jQuery('#sx_v3toys_paginator').pagination('getCurrentPage'); var result = getCurrentPage + 1; jQuery('#sx_v3toys_paginator').pagination('drawPage', result); } JS ), 'eventOnRendered' => new \yii\web\JsExpression(<<<JS function(pageNum, scrollOffset, url) { sx.App.ImageLazyLoader.update(); sx.App.ImageProductSlider.update(); jQuery('.catalog-list__link-not-ready span').ellipsis({ lines: 2, // force ellipsis after a certain number of lines. Default is 'auto' ellipClass: 'ellip', // class used for ellipsis wrapper and to namespace ellip line responsive: true // set to true if you want ellipsis to update on window resize. Default is false }); jQuery(".catalog-list__link-not-ready").removeClass('catalog-list__link-not-ready'); var getPagesCount = jQuery('#sx_v3toys_paginator').pagination('getPagesCount'); var getCurrentPage = jQuery('#sx_v3toys_paginator').pagination('getCurrentPage'); sx.App.jLastProduct.after('<li class="main-catalog__sepatrator"><span>Страница ' + getCurrentPage + ' из ' + getPagesCount + '</span></li>'); } JS ), ], //... ]); ?>

skeeks!
SkeekS CMS (Yii2) — fast, simple, effective!
skeeks.com | cms.skeeks.com, (*7)

The Versions

21/05 2018

dev-master

9999999-dev https://skeeks.com/

jQuery contextMenu plugin & polyfill for yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

yii

21/05 2018

1.0.0

1.0.0.0 https://skeeks.com/

jQuery contextMenu plugin & polyfill for yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

yii