Can Yii2 Pager display only prevous and next buttons ?

I would like if yii2 pager do not display page number links, but only previous and next buttons. Is this possible ?

<?php echo LinkPager::widget([

    'pagination' => $pagination,

    'prevPageLabel' => 'Previous',

    'nextPageLabel' => 'Next',



Do I have to configure something here ? Thanks

Also, in case that I do not know what is the totalCount, but I want to display prev and next links, what should I do ? I do not want users to be able to scroll even if there are no pages to display.

What happens when you set maxButtonCount to 0?