You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,23 @@ import Pagination from 'vue-smart-pagination'
26
26
Vue.component('pagination', Pagination)
27
27
```
28
28
## 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
+
30
40
`PaginationControlSettings` contains settings related to buttons, arrows, dots and the start page.
41
+
42
+
31
43
`PaginationPageSettings` contains settings related to the page, the spinner and animation of the content change.
44
+
45
+
32
46
Array **array_data** serves to output data to the page and `is required to fill`.
33
47
34
48
**Example:**
@@ -136,7 +150,9 @@ export default {
136
150
**Adding Data to a Component:**
137
151
138
152
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>`.
0 commit comments