kop / yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget
https://kop.github.io/yii2-scroll-pager/
MIT License
180 stars 63 forks source link

Cant'enable extension #93

Open ashik1729 opened 6 years ago

ashik1729 commented 6 years ago

i just try to enable extesion fron spinner . but it can't work for me

<?php

                echo ListView::widget([
                    'dataProvider' => $dataProvider,
                    'itemOptions' => ['class' => 'item'],
                    'itemView' => '_item',
                    'pager' => ['class' => \kop\y2sp\ScrollPager::className(),
                        'spinnerTemplate' => '<div class="ias-spinner" style="text-align: center;"><img src="{src}"/></div>',
                        'triggerText' => 'Load More Data',
                        'noneLeftText' => 'No more result to display',
                        'eventOnScroll' => true,
                        'triggerOffset' => 6,
                        'eventOnRendered' => 'function() {loadPost();}',
                        // 'triggerTemplate' => '{text}',
                        'enabledExtensions' => [
                            'EXTENSION_TRIGGER'=> true,
                              'EXTENSION_HISTORY' => false,
                            'EXTENSION_PAGING'=>true,
                            'EXTENSION_SPINNER'=>true,

                            ],
                    ],

                ]);
                ?>

i get the error

kop-screenshot