@@ -236,14 +236,27 @@ echo Pagination::widget([
236236
237237#### Customized View
238238
239- The default widget view is for Bootstrap(` bootstrap ` ), you could customized your pagination view then set into Pagination Widget.
239+ The default widget view is for Bootstrap(` bootstrap ` ), you could choose a template view for your Pagination Widget:
240240
241241``` php
242- use yidas\widgets\Pagination;
242+ echo \yidas\widgets\Pagination::widget([
243+ 'pagination' => $pagination,
244+ 'view' => 'simple',
245+ ]);
246+ ```
243247
244- echo Pagination::widget([
248+ | Template | Description|
249+ | :--------| :----------|
250+ | bootstrap| Default view, supports for Bootstrap 3 and 4|
251+ | simple | Simple ` <div> ` with ` <a> ` tags for pure HTML/CSS style|
252+
253+
254+ You can also use your customized view for Pagination widget:
255+
256+ ``` php
257+ echo \yidas\widgets\Pagination::widget([
245258 'pagination' => $pagination,
246- 'view' => $appPagerViewPath ,
259+ 'view' => __DIR__ . '/../widgets/pagination_view.php' ,
247260]);
248261```
249262
@@ -426,7 +439,7 @@ API DOCUMENTATION
426439| $pageCssClass| string | The CSS class for the each page button, default value is ` page-item ` |
427440| $ulCssClass | string | The CSS class for the ul element of pagination. For example, 'pagination-sm' for Bootstrap small size.|
428441| $linkAttributes| array | HTML attributes for the link in a pager container tag, default value is [ 'class' => 'page-link'] |
429- | $view | string | The view name or absolute file path that can be used to render view. (Template: ` bootstrap ` , ` simple ` )|
442+ | $view | string | The view name or absolute file path that can be used to render view. ([ Template view choices ] ( #customized-view ) )|
430443
431444---
432445
0 commit comments