Skip to content

Commit 3c86893

Browse files
author
grinmax
committed
#new readme
1 parent b0e3f14 commit 3c86893

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,23 @@ import Pagination from 'vue-smart-pagination'
2626
Vue.component('pagination', Pagination)
2727
```
2828
## Usage
29-
Vue-smart-pagination contains two main components: **PaginationPage** - has content of the pages. **PaginationControl** - has content controls. Both components are registered globally after installing package. Also we have **props** - `:settings="settings”` which has two main objects - `PaginationControlSettings` и `PaginationPageSettings`.
29+
Vue-smart-pagination contains two main components:
30+
31+
**PaginationPage** - has content of the pages.
32+
33+
**PaginationControl** - has content controls.
34+
35+
Both components are registered globally after installing package.
36+
37+
Also we have **props** - `:settings="settings”` which has two main objects - `PaginationControlSettings` и `PaginationPageSettings`.
38+
39+
3040
`PaginationControlSettings` contains settings related to buttons, arrows, dots and the start page.
41+
42+
3143
`PaginationPageSettings` contains settings related to the page, the spinner and animation of the content change.
44+
45+
3246
Array **array_data** serves to output data to the page and `is required to fill`.
3347

3448
**Example:**
@@ -136,7 +150,9 @@ export default {
136150
**Adding Data to a Component:**
137151
138152
In the array `array_data` we add data and output them to the `<pagination-page>`. When referring to an array of elements, specify the `originalEvent` property to display the current data.
139-
To display simple data, use `<div>`, and for components use `<component>`. `<div slot =" page "slot-scope =" item "> </ div>` is required.
153+
To display simple data, use `<div>`, and for components use `<component>`.
154+
155+
`<div slot =" page "slot-scope =" item "> </ div>` is required.
140156
141157
**Example:**
142158
```

0 commit comments

Comments
 (0)