H
H
haa2018-10-20 22:36:29
Yii
haa, 2018-10-20 22:36:29

Why scripts connected via RenderAjax do not work?

RenderAjax connects scripts
5bcb834180817532639011.png
and for some reason they don't work! Doesn't give any errors.
ps Code

return $this->renderAjax('articlesearch', [
           'dataProvider' => $dataProvider
]);

articlesearch.php
echo ListView::widget([
            'dataProvider' => $dataProvider,
            'options' => [
                'tag' => false
            ],
            'itemOptions' => [
                'class' => 'item',
                'tag' => false,
            ],
            'emptyText' => 'Записей не найдено',
            'summary' => false,
            'itemView' => '_ajaxList',
            'pager' => [
                'class' => ScrollPager::className(),
                'triggerText' => 'Еще',
                'noneLeftText' => 'Записей нет',
                'spinnerSrc' => '',
                'spinnerTemplate' => '',
                'enabledExtensions' => [
                    ScrollPager::EXTENSION_SPINNER,
                    ScrollPager::EXTENSION_NONE_LEFT,
                    ScrollPager::EXTENSION_PAGING
                ],
                'eventOnScroll' => 'function() {console.log(1)}',
            ]
        ]);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question