Skip to content

Commit

Permalink
Added assets
Browse files Browse the repository at this point in the history
  • Loading branch information
vityachis committed Feb 2, 2018
1 parent 2621e2b commit 9b322e7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions LinkPager.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ class LinkPager extends YiiLinkPager
],
];


/**
* @inheritdoc
*/
public function init()
{
parent::init();
$this->registerAssets();
}

/**
* @inheritdoc
*/
Expand Down Expand Up @@ -74,4 +84,13 @@ protected function renderPageSize()
}
return Html::dropDownList($this->pagination->pageSizeParam, $this->pagination->getPageSize(), $pageSizeList, $this->pageSizeOptions);
}

/**
* Registers the needed assets
*/
public function registerAssets()
{
$view = $this->getView();
LinkPagerAssets::register($view);
}
}

0 comments on commit 9b322e7

Please sign in to comment.