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
Vue-smart-pagination состоит из двух основных компонентов: **PaginationPage** - отвечает за вывод контента страницы. **PaginationControl** - выводит кнопки контроля пагинацей. Оба компонента регистрируются глобально после установки плагина. Также существуют два основных объекта - `PaginationControlSettings` и `PaginationPageSettings`. `PaginationControlSettings` содержит настройки, относящиеся к управлению кнопок, стрелок, точек и стартовой страницы. `PaginationPageSettings`
23
-
содержит настройки, относящиеся к управлению класса страницы, спиннера и анимации. Все они передаются через **props** - `“:settings="settings”`. Массив **array_data** служит для вывода данных на страницу и `является обязательным для заполнения`.
27
+
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`.
28
+
`PaginationControlSettings` contains settings related to buttons, arrows, dots and the start page.
29
+
`PaginationPageSettings` contains settings related to the page, the spinner and animation of the content change.
30
+
Array ** array_data ** serves to output data to the page and `is required to fill`.
В массив `array_data` внести свои переменные (для вывода компонента переменной присваивается его название), затем в компоненте pagination-page записать их. Обращаемся к массиву элементов, указываем свойство originalEvent для вывода текущих данных и собственно саму переменную. Для вывода обычных данных используется `<div>`, а для компонентов - `<component>`. Строка `<div slot="page" slot-scope="item"></div>` является обязательной.
128
-
**Пример:**
136
+
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.
137
+
To display simple data, use `<div>`, and for components use `<component>`. `<div slot =" page "slot-scope =" item "></ div>` is required.
> Для вызова собственного метода, при переключении страниц, в компоненте`<pagination-control/>`в action callMethod нужно передать пользовательскую функцию, которая объявляется в объекте methods.
> To call a custom method, when switching pages, in the`<pagination-control/>`component in the action callMethod, you must pass a user-defined function that is declared in the methods object.
181
202
182
-
**Пример:**
203
+
**Example:**
183
204
```
184
205
<pagination-control @callMethod =" test "/>
185
206
```
186
207
```
187
-
methody: {
208
+
methods: {
188
209
test:function (e) {
189
210
console.log (e)
190
211
}
191
212
}
192
213
```
193
-
### Совместимость с браузером
194
-
Vue-smart-pagination успешно протестирован в браузерах таких как:
214
+
### Browsers
215
+
Vue-smart-pagination has been successfully tested in browsers such as:
0 commit comments