inifinite-scroll-pager Yii pager uses Infinite Ajax Scroll, a jQuery plugin

  1. Requirements
  2. Usage
  3. Resources

This extension uses Infinite Ajax Scroll, a jQuery plugin

Update

March 5, 2013 Added loaderText public property. Thanks to maxxdev

February 8, 2013 Now you can manually trigger loading page. Thanks to Junior - df9. Example code also has been updated.

Requirements

Yii

Usage

Put this extension to your extensions directory

Example code

$this->widget('zii.widgets.CListView', array(
       'id' => 'VideoList',
       'dataProvider' => $dataProvider,
       'itemView' => '_view',
       'template' => '{items} {pager}',
       'pager' => array(
                    'class' => 'ext.infiniteScroll.IasPager', 
                    'rowSelector'=>'.row', 
                    'listViewId' => 'VideoList', 
                    'header' => '',
                    'loaderText'=>'Loading...',
                    'options' => array('history' => false, 'triggerPageTreshold' => 2, 'trigger'=>'Load more'),
                  )
            )
       );         

Resources

https://github.com/webcreate/infinite-ajax-scroll

Demo

20 0
43 followers
7 035 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Tpoxa
Created on: Jun 27, 2012
Last updated: 11 years ago

Downloads

show all

Related Extensions