@@ -4,8 +4,7 @@ description: Description, specification and examples for the Pagination componen
44---
55
66import Readme from ' /readmes/pagination/readme.md' ;
7- import { Configurator } from ' @site/src/components/Configurator' ;
8- import { LiveEditorCompact } from ' @site/src/components/LiveEditorCompact' ;
7+ import PaginationPreview from ' @site/src/components/previews/components/Pagination' ;
98import { ExampleLink } from ' @site/src/components/ExampleLink' ;
109
1110# Pagination
@@ -14,15 +13,11 @@ With the help of the **Pagination** component, extensive, divided content, such
1413
1514## Construction
1615
17- ### Code
18-
19- ``` html
20- <div >
21- <kol-pagination _max =" 100" _page =" 6" ></kol-pagination >
22- <kol-pagination _max =" 100" _page =" 6" _sibling-count =" 2" ></kol-pagination >
23- <kol-pagination _max =" 100" _page =" 6" _sibling-count =" 0" _boundary-count =" 2" ></kol-pagination >
24- </div >
25- ```
16+ <PaginationPreview
17+ visibleProperties = { [' _max' , ' _page' , ' _siblingCount' , ' _boundaryCount' , ' _hasButtons' ]}
18+ codeCollapsable
19+ codeCollapsed
20+ />
2621
2722### Events
2823
@@ -34,17 +29,6 @@ For the handling of events or callbacks, see <kol-link _label="Events" _href="..
3429| ` changePage ` | Page is clicked | Number of selected page |
3530| ` changePageSize ` | Page size is changed | New page size |
3631
37- ### Example
38-
39- <div class = " grid gap-2" >
40- <kol-heading _level = " 3" _label = " Standardausgabe nur mit aktuellem Element" ></kol-heading >
41- <kol-pagination _max = " 100" _page = " 6" _has-buttons = " false" ></kol-pagination >
42- <kol-heading _level = " 3" _label = " Ausgabe 2 Elemente links und rechts dem aktuellen Element (_sibling)" ></kol-heading >
43- <kol-pagination _max = " 100" _page = " 6" _sibling-count = " 2" ></kol-pagination >
44- <kol-heading _level = " 3" _label = " Ausgabe 2 Elemente links und rechts (_boundary-count)" ></kol-heading >
45- <kol-pagination _max = " 100" _page = " 6" _sibling-count = " 0" _boundary-count = " 2" ></kol-pagination >
46- </div >
47-
4832## Usage
4933
5034The ** Pagination** component can be configured via your properties.
@@ -61,14 +45,11 @@ The **Pagination** component can be configured via your properties.
6145The **Pagination** component can be used in a variety of ways. Especially where extensive content is to be displayed on a content page, it helps to improve the structure and clarity.
6246Classic areas of application for pagination include blog-like content, lists and tables. Pagination can also be used for certain navigation tasks within a page.
6347
64- <Readme />
65-
66- <ExampleLink component = " pagination" />
67-
68- ## Live editor
48+ # API
6949
70- <LiveEditorCompact component = " pagination " />
50+ <Readme />
7151
7252## Examples
7353
74- <Configurator component = " pagination" sample = " basic" />
54+ <ExampleLink component = " pagination" />
55+
0 commit comments