@@ -141,9 +141,12 @@ export interface PaginationOptions {
141
141
* ```js
142
142
* const swiper = new Swiper('.swiper', {
143
143
* //...
144
- * renderBullet: function (index, className) {
145
- * return '<span class="' + className + '">' + (index + 1) + '</span>';
146
- * }
144
+ * pagination: {
145
+ * //...
146
+ * renderBullet: function (index, className) {
147
+ * return '<span class="' + className + '">' + (index + 1) + '</span>';
148
+ * },
149
+ * },
147
150
* });
148
151
* ```
149
152
*/
@@ -158,11 +161,14 @@ export interface PaginationOptions {
158
161
* ```js
159
162
* const swiper = new Swiper('.swiper', {
160
163
* //...
161
- * renderFraction: function (currentClass, totalClass) {
164
+ * pagination: {
165
+ * //...
166
+ * renderFraction: function (currentClass, totalClass) {
162
167
* return '<span class="' + currentClass + '"></span>' +
163
168
* ' of ' +
164
169
* '<span class="' + totalClass + '"></span>';
165
- * }
170
+ * },
171
+ * },
166
172
* });
167
173
* ```
168
174
*/
@@ -177,9 +183,12 @@ export interface PaginationOptions {
177
183
* ```js
178
184
* const swiper = new Swiper('.swiper', {
179
185
* //...
180
- * renderProgressbar: function (progressbarFillClass) {
186
+ * pagination: {
187
+ * //...
188
+ * renderProgressbar: function (progressbarFillClass) {
181
189
* return '<span class="' + progressbarFillClass + '"></span>';
182
- * }
190
+ * },
191
+ * },
183
192
* });
184
193
* ```
185
194
*/
@@ -195,9 +204,12 @@ export interface PaginationOptions {
195
204
* ```js
196
205
* const swiper = new Swiper('.swiper', {
197
206
* //...
198
- * renderCustom: function (swiper, current, total) {
199
- * return current + ' of ' + total;
200
- * }
207
+ * pagination: {
208
+ * //...
209
+ * renderCustom: function (swiper, current, total) {
210
+ * return current + ' of ' + total;
211
+ * },
212
+ * },
201
213
* });
202
214
* ```
203
215
*/
0 commit comments