Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need a every scroll on record without click on "load more items" #81

Open
karamdeep-singh opened this issue Mar 21, 2017 · 6 comments
Open

Comments

@karamdeep-singh
Copy link

I have set the triggerOffset 3 , but i need a every scroll on record without click on "load more items"

pls help

@baorv
Copy link

baorv commented Mar 27, 2017

I have the same problem! Anyone help?

@jasonhai
Copy link

The same with me, anybody can help us to resolve this ticket?

Here is my code:

$dataProvider, 'itemOptions' => ['class' => 'item'], 'itemView' => '_view_category', 'summary' => '', 'pager' => [ 'class' => \kop\y2sp\ScrollPager::className(), 'triggerText' => 'Load more new items', 'eventOnRendered' => 'function() {window.setTimeout(function() {$(window).scroll();}, 500);}', 'triggerOffset' => 1, 'enabledExtensions' => [ \kop\y2sp\ScrollPager::EXTENSION_TRIGGER, \kop\y2sp\ScrollPager::EXTENSION_SPINNER, \kop\y2sp\ScrollPager::EXTENSION_NONE_LEFT, \kop\y2sp\ScrollPager::EXTENSION_PAGING, ] ] ]); ?>

Many thanks.

Jason Hai.

@uktamovdilshod
Copy link

       <?php
            echo \yii\widgets\ListView::widget([
                'dataProvider' => $dataProvider,                  
                'itemView' => '_item',
                'pager' => [
                    'class' => \kop\y2sp\ScrollPager::className(),                       
                    'triggerOffset'=>10000000,    
                    'enabledExtensions' => ['EXTENSION_HISTORY' => false],                     
                ]
            ]);

        ?>

@shayanhusaini
Copy link

set 'enabledExtensions'=> ['IASSpinnerExtension'],

@patpwilly
Copy link

'triggerOffset'=>$dataProvider->totalCount/$dataProvider->pagination->pageSize,

@buttflattery
Copy link

this should be closed as the comment from @patpwilly explains the logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants