mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
docs(swiper): update swiper api link (#24972)
This commit is contained in:
6
core/src/components.d.ts
vendored
6
core/src/components.d.ts
vendored
@ -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;
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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> {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user