mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
@ -294,6 +294,22 @@ Type: `Promise<void>`
|
||||
|
||||
|
||||
|
||||
### `updateAutoHeight(speed?: number | undefined) => Promise<void>`
|
||||
|
||||
Force swiper to update its height (when autoHeight enabled) for the duration equal to 'speed' parameter
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------- | --------------------- | ----------- |
|
||||
| `speed` | `number \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
Type: `Promise<void>`
|
||||
|
||||
|
||||
|
||||
|
||||
## CSS Custom Properties
|
||||
|
||||
|
||||
@ -161,6 +161,15 @@ export class Slides implements ComponentInterface {
|
||||
swiper.update();
|
||||
}
|
||||
|
||||
/**
|
||||
* Force swiper to update its height (when autoHeight enabled) for the duration equal to 'speed' parameter
|
||||
*/
|
||||
@Method()
|
||||
async updateAutoHeight(speed?: number) {
|
||||
const swiper = await this.getSwiper();
|
||||
swiper.updateAutoHeight(speed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Transition to the specified slide.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user