docs(swiper): update swiper api link (#24972)

This commit is contained in:
Sean Perkins
2022-03-22 14:11:51 -04:00
committed by GitHub
parent 2909b080b7
commit df71a0e625
8 changed files with 22 additions and 22 deletions

View File

@ -2512,7 +2512,7 @@ export namespace Components {
*/ */
"getPreviousIndex": () => Promise<number>; "getPreviousIndex": () => Promise<number>;
/** /**
* Get the Swiper instance. Use this to access the full Swiper API. See https://idangero.us/swiper/api/ for all API options. * Get the Swiper instance. Use this to access the full Swiper API. See https://swiperjs.com/swiper-api for all API options.
*/ */
"getSwiper": () => Promise<any>; "getSwiper": () => Promise<any>;
/** /**
@ -2547,7 +2547,7 @@ export namespace Components {
*/ */
"mode"?: "ios" | "md"; "mode"?: "ios" | "md";
/** /**
* Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options * Options to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options
*/ */
"options": any; "options": any;
/** /**
@ -6290,7 +6290,7 @@ declare namespace LocalJSX {
*/ */
"onIonSlidesDidLoad"?: (event: CustomEvent<void>) => void; "onIonSlidesDidLoad"?: (event: CustomEvent<void>) => void;
/** /**
* Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options * Options to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options
*/ */
"options"?: any; "options"?: any;
/** /**

View File

@ -498,7 +498,7 @@ import { Component } from '@angular/core';
}) })
export class SlideExample { export class SlideExample {
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
slideOpts = { slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400
@ -539,7 +539,7 @@ ion-slides {
var slides = document.querySelector('ion-slides'); var slides = document.querySelector('ion-slides');
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
slides.options = { slides.options = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400
@ -561,7 +561,7 @@ import React from 'react';
import { IonSlides, IonSlide, IonContent } from '@ionic/react'; import { IonSlides, IonSlide, IonContent } from '@ionic/react';
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
const slideOpts = { const slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400
@ -603,7 +603,7 @@ import { Component, h } from '@stencil/core';
}) })
export class SlidesExample { export class SlidesExample {
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
private slideOpts = { private slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400
@ -664,7 +664,7 @@ import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
components: { IonSlides, IonSlide }, components: { IonSlides, IonSlide },
setup() { setup() {
// Optional parameters to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options. // Optional parameters to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options.
const slideOpts = { const slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400
@ -679,12 +679,12 @@ export default defineComponent({
## Properties ## Properties
| Property | Attribute | Description | Type | Default | | Property | Attribute | Description | Type | Default |
| ----------- | ----------- | -------------------------------------------------------------------------------------------- | --------------- | ----------- | | ----------- | ----------- | --------------------------------------------------------------------------------------------- | --------------- | ----------- |
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` | | `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
| `options` | `options` | Options to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options | `any` | `{}` | | `options` | `options` | Options to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options | `any` | `{}` |
| `pager` | `pager` | If `true`, show the pagination. | `boolean` | `false` | | `pager` | `pager` | If `true`, show the pagination. | `boolean` | `false` |
| `scrollbar` | `scrollbar` | If `true`, show the scrollbar. | `boolean` | `false` | | `scrollbar` | `scrollbar` | If `true`, show the scrollbar. | `boolean` | `false` |
## Events ## Events
@ -735,7 +735,7 @@ Type: `Promise<number>`
Get the Swiper instance. Get the Swiper instance.
Use this to access the full Swiper API. Use this to access the full Swiper API.
See https://idangero.us/swiper/api/ for all API options. See https://swiperjs.com/swiper-api for all API options.
#### Returns #### Returns

View File

@ -29,7 +29,7 @@ export class Slides implements ComponentInterface {
/** /**
* Options to pass to the swiper instance. * Options to pass to the swiper instance.
* See http://idangero.us/swiper/api/ for valid options * See https://swiperjs.com/swiper-api for valid options
*/ */
@Prop() options: any = {}; // SwiperOptions; // TODO @Prop() options: any = {}; // SwiperOptions; // TODO
@ -330,7 +330,7 @@ export class Slides implements ComponentInterface {
/** /**
* Get the Swiper instance. * Get the Swiper instance.
* Use this to access the full Swiper API. * Use this to access the full Swiper API.
* See https://idangero.us/swiper/api/ for all API options. * See https://swiperjs.com/swiper-api for all API options.
*/ */
@Method() @Method()
async getSwiper(): Promise<any> { async getSwiper(): Promise<any> {

View File

@ -21,7 +21,7 @@ import { Component } from '@angular/core';
}) })
export class SlideExample { export class SlideExample {
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
slideOpts = { slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400

View File

@ -20,7 +20,7 @@
var slides = document.querySelector('ion-slides'); var slides = document.querySelector('ion-slides');
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
slides.options = { slides.options = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400

View File

@ -3,7 +3,7 @@ import React from 'react';
import { IonSlides, IonSlide, IonContent } from '@ionic/react'; import { IonSlides, IonSlide, IonContent } from '@ionic/react';
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
const slideOpts = { const slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400

View File

@ -7,7 +7,7 @@ import { Component, h } from '@stencil/core';
}) })
export class SlidesExample { export class SlidesExample {
// Optional parameters to pass to the swiper instance. // Optional parameters to pass to the swiper instance.
// See http://idangero.us/swiper/api/ for valid options. // See https://swiperjs.com/swiper-api for valid options.
private slideOpts = { private slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400

View File

@ -21,7 +21,7 @@ import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
components: { IonSlides, IonSlide }, components: { IonSlides, IonSlide },
setup() { setup() {
// Optional parameters to pass to the swiper instance. See http://idangero.us/swiper/api/ for valid options. // Optional parameters to pass to the swiper instance. See https://swiperjs.com/swiper-api for valid options.
const slideOpts = { const slideOpts = {
initialSlide: 1, initialSlide: 1,
speed: 400 speed: 400