[ * 'definitions' => [ * \yii\widgets\LinkPager::class => \yii\bootstrap5\LinkPager::class, * ], * ], * ``` * * @see https://getbootstrap.com/docs/5.0/components/pagination/ * @author Simon Karlen * @since 2.0.2 * * @property-read array $pageRange */ class LinkPager extends Widget { /** * @var Pagination the pagination object that this pager is associated with. * You must set this property in order to make LinkPager work. */ public Pagination $pagination; /** * @var array HTML attributes for the pager container tag. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public array $options = []; /** * @var array HTML attributes for the pager list tag. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public array $listOptions = ['class' => ['pagination']]; /** * @var array HTML attributes which will be applied to all link containers */ public array $linkContainerOptions = ['class' => ['page-item']]; /** * @var array HTML attributes for the link in a pager container tag. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. */ public array $linkOptions = ['class' => ['page-link']]; /** * @var string the CSS class for the each page button. */ public string $pageCssClass = 'page-item'; /** * @var string the CSS class for the "first" page button. */ public string $firstPageCssClass = 'first'; /** * @var string the CSS class for the "last" page button. */ public string $lastPageCssClass = 'last'; /** * @var string the CSS class for the "previous" page button. */ public string $prevPageCssClass = 'prev'; /** * @var string the CSS class for the "next" page button. */ public string $nextPageCssClass = 'next'; /** * @var string the CSS class for the active (currently selected) page button. */ public string $activePageCssClass = 'active'; /** * @var string the CSS class for the disabled page buttons. */ public string $disabledPageCssClass = 'disabled'; /** * @var array the options for the disabled tag to be generated inside the disabled list element. * In order to customize the html tag, please use the tag key. * * ```php * $disabledListItemSubTagOptions = ['class' => 'disabled-link']; * ``` */ public array $disabledListItemSubTagOptions = []; /** * @var int maximum number of page buttons that can be displayed. Defaults to 10. */ public int $maxButtonCount = 10; /** * @var string|bool the label for the "next" page button. Note that this will NOT be HTML-encoded. * If this property is false, the "next" page button will not be displayed. */ public $nextPageLabel = '