23 if(!$this->_compiled){
24 foreach ($this->content as $item){
25 $item->addClass(
"pageNum");
27 $this->
insertItem(
new HtmlIcon(
"",
"left chevron"))->setProperty(
"data-page", \max([1,$this->_page-1]))->addToProperty(
"class",
"_firstPage no-active");
28 $this->
addItem(
new HtmlIcon(
"",
"right chevron"))->setProperty(
"data-page", \min([$max,$this->_page+1]))->setProperty(
"data-max", $max)->addToProperty(
"class",
"_lastPage no-active");
31 return parent::compile($js,$view);