Свойство |
Type |
Description |
|
$container |
string |
Enter the selector of the element containing your items that you want to paginate. |
|
$delay |
integer |
Minimal number of milliseconds to stay in a loading state. |
|
$enabledExtensions |
array |
The list of the enabled plugin extensions. |
|
$eventOnLoad |
string | yii\web\JsExpression |
Triggered when a new url will be loaded from the server. |
|
$eventOnLoaded |
string | yii\web\JsExpression |
Triggered after a new page was loaded from the server. |
|
$eventOnNext |
string | yii\web\JsExpression |
Triggered when the next page should be loaded.
Happens before loading of the next page starts. With this event it is possible to cancel the loading of the next page.
You can do this by returning false from your callback. |
|
$eventOnNoneLeft |
string | yii\web\JsExpression |
Triggered when there are no more pages left. |
|
$eventOnPageChange |
string | yii\web\JsExpression |
Triggered when a used scroll to another page. |
|
$eventOnReady |
string | yii\web\JsExpression |
Triggered when IAS and all the extensions have been initialized. |
|
$eventOnRender |
string | yii\web\JsExpression |
Triggered before new items will be rendered. |
|
$eventOnRendered |
string | yii\web\JsExpression |
Triggered after new items have rendered.
Note: This event is only fired once. |
|
$eventOnScroll |
string | yii\web\JsExpression |
Triggered when the visitors scrolls. |
|
$historyPrev |
string |
Enter the selector of the link element that links to the previous page.
The href attribute of this element will be used to get the items from the previous page.
Make sure there is only one element that matches the selector. |
|
$item |
string |
Enter the selector of the element that each item has.
Make sure the elements are inside the container element. |
|
$negativeMargin |
integer |
|
|
$next |
string |
Enter the selector of the link element that links to the next page.
The href attribute of this element will be used to get the items from the next page.
Make sure there is only one(1) element that matches the selector. |
|
$noneLeftTemplate |
string |
Allows you to override the "nothing left" message html template. |
|
$noneLeftText |
string |
Text of the "nothing left" message.
Default: "You reached the end". |
|
$overflowContainer |
string |
A selector for "div" HTML element to use as an overflow container. |
|
$pagination |
|
The pagination object that this pager is associated with.
You must set this property in order to make ScrollPager work. |
|
$paginationSelector |
string |
Enter the selector of the element containing the pagination. |
|
$spinnerSrc |
string |
The src attribute of the spinner image. |
|
$spinnerTemplate |
string |
Allows you to override the spinner html template. |
|
$triggerOffset |
integer |
The number of pages which should load automatically.
After that the trigger is shown for every subsequent page.
For example:
if you set the offset to 2, the pages 2 and 3 (page 1 is always shown) would load automatically and for every
subsequent page the user has to press the trigger to load it. |
|
$triggerTemplate |
string |
Allows you to override the trigger html template. |
|
$triggerText |
string |
Text of trigger the link.
Default: "Load more items". |
|