@@ -141,9 +141,12 @@ export interface PaginationOptions {
141141 * ```js
142142 * const swiper = new Swiper('.swiper', {
143143 * //...
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+ * },
147150 * });
148151 * ```
149152 */
@@ -158,11 +161,14 @@ export interface PaginationOptions {
158161 * ```js
159162 * const swiper = new Swiper('.swiper', {
160163 * //...
161- * renderFraction: function (currentClass, totalClass) {
164+ * pagination: {
165+ * //...
166+ * renderFraction: function (currentClass, totalClass) {
162167 * return '<span class="' + currentClass + '"></span>' +
163168 * ' of ' +
164169 * '<span class="' + totalClass + '"></span>';
165- * }
170+ * },
171+ * },
166172 * });
167173 * ```
168174 */
@@ -177,9 +183,12 @@ export interface PaginationOptions {
177183 * ```js
178184 * const swiper = new Swiper('.swiper', {
179185 * //...
180- * renderProgressbar: function (progressbarFillClass) {
186+ * pagination: {
187+ * //...
188+ * renderProgressbar: function (progressbarFillClass) {
181189 * return '<span class="' + progressbarFillClass + '"></span>';
182- * }
190+ * },
191+ * },
183192 * });
184193 * ```
185194 */
@@ -195,9 +204,12 @@ export interface PaginationOptions {
195204 * ```js
196205 * const swiper = new Swiper('.swiper', {
197206 * //...
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+ * },
201213 * });
202214 * ```
203215 */
0 commit comments