diff --git a/ScrollPagerWrapper.php b/ScrollPagerWrapper.php index a37ba4c..62d502e 100644 --- a/ScrollPagerWrapper.php +++ b/ScrollPagerWrapper.php @@ -7,6 +7,8 @@ /** * Class ScrollPagerWrapper * @package voskobovich\widgets + * + * @property string container */ class ScrollPagerWrapper extends Pjax { @@ -17,6 +19,7 @@ class ScrollPagerWrapper extends Pjax * Note that if the response to the pjax request is a full page, a normal request will be sent again. */ public $linkSelector = false; + /** * @var string|false the jQuery selector of the forms whose submissions should trigger pjax requests. * If not set, all forms with `data-pjax` attribute within the enclosed content of Pjax will trigger pjax requests. @@ -24,4 +27,12 @@ class ScrollPagerWrapper extends Pjax * Note that if the response to the pjax request is a full page, a normal request will be sent again. */ public $formSelector = false; + + /** + * @return string + */ + public function getContainer() + { + return '#' . $this->id; + } } \ No newline at end of file