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
{{ message }}
This repository was archived by the owner on Feb 24, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+46-46Lines changed: 46 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,9 +70,9 @@ Vue.use(VueAgile)
70
70
import { VueAgile } from'vue-agile'
71
71
72
72
exportdefault {
73
-
components: {
74
-
agile: VueAgile
75
-
}
73
+
components: {
74
+
agile: VueAgile
75
+
}
76
76
}
77
77
```
78
78
@@ -87,17 +87,17 @@ export default {
87
87
88
88
```vue
89
89
<template>
90
-
<agile>
91
-
<div class="slide">
92
-
<h3>slide 1</h3>
93
-
</div>
94
-
95
-
...
96
-
97
-
<div class="slide">
98
-
<h3>slide n</h3>
99
-
</div>
100
-
</agile>
90
+
<agile>
91
+
<div class="slide">
92
+
<h3>slide 1</h3>
93
+
</div>
94
+
95
+
...
96
+
97
+
<div class="slide">
98
+
<h3>slide n</h3>
99
+
</div>
100
+
</agile>
101
101
</template>
102
102
```
103
103
@@ -172,8 +172,8 @@ Every first-level child of `<agile>` is a new slide. You also can group them ins
172
172
173
173
```js
174
174
showCurrentSlide (event) {
175
-
console.log(event)
176
-
// Shows for example: { currentSlide: 1 }
175
+
console.log(event)
176
+
// Shows for example: { currentSlide: 1 }
177
177
}
178
178
```
179
179
@@ -189,33 +189,33 @@ To customize responsiveness, I recommend defining your desired breakpoints and p
189
189
190
190
```js
191
191
data () {
192
-
return {
193
-
myOptions: {
194
-
navButtons:false,
195
-
196
-
responsive: [
197
-
{
198
-
breakpoint:600,
199
-
settings: {
200
-
dots:false
201
-
}
202
-
},
203
-
204
-
{
205
-
breakpoint:900,
206
-
settings: {
207
-
navButtons:true,
208
-
dots:true,
209
-
infinite:false
210
-
}
192
+
return {
193
+
myOptions: {
194
+
navButtons:false,
195
+
196
+
responsive: [
197
+
{
198
+
breakpoint:600,
199
+
settings: {
200
+
dots:false
201
+
}
202
+
},
203
+
204
+
{
205
+
breakpoint:900,
206
+
settings: {
207
+
navButtons:true,
208
+
dots:true,
209
+
infinite:false
210
+
}
211
+
}
212
+
]
211
213
}
212
-
]
213
214
}
214
-
}
215
215
}
216
216
```
217
217
218
-
How does it work? Mobile first mode is used by default. It means, that `navButtons: false` option will be used on screens from 0 to 600 px width (+ all default carousel options). On screens from 600 to 900 px `dots: false` will be added to options from breakpoint before. And on screens over 900 px width `navButtons` and `dots` options will be overwritten and `infinite: false` will be added.
218
+
How does it work? Mobile first mode is used by default. It means, that `navButtons: false` option will be used on screens from 0 to 600 px width (+ all default carousel options). On screens from 600 to 900 px `dots: false`will be added to options from breakpoint before. And on screens over 900 px width `navButtons` and `dots` options will be overwritten and `infinite: false` will be added.
219
219
220
220
## Custom arrows / nav buttons
221
221
@@ -225,10 +225,10 @@ From version `1.0` the component use slots for custom navigation buttons. It mea
0 commit comments