magento api pagination code example
Example 1: pagination magento
public function getPagerHtml()
{
return $this->getChildHtml('pager');
}
Example 2: pagination magento
<?php if ($block->getPagerHtml()): ?>
<div class="order-products-toolbar toolbar bottom"><?php echo $block->getPagerHtml(); ?></div>
<?php endif ?>