Skip to content

content: Swiper.js migration, slidesPerView value is incorrect #2944

Closed
@Sampath-Lokuge

Description

@Sampath-Lokuge

Describe the Bug

<ion-slides [options]="{ slidesPerView: true, loop: true }">
  <ion-slide>Slide 1</ion-slide>
  <ion-slide>Slide 3</ion-slide>
  <ion-slide>Slide 3</ion-slide>
</ion-slides>

Ref: https://ionicframework.com/docs/angular/slides#properties

Expected Behavior

<ion-slides [options]="{ slidesPerView: 3, loop: true }">
  <ion-slide>Slide 1</ion-slide>
  <ion-slide>Slide 3</ion-slide>
  <ion-slide>Slide 3</ion-slide>
</ion-slides>

Steps to Reproduce

No boolean for slidesPerView:. i.e. it must be number.

Screenshots

No response

Operating System

No response

Browser

No response

Version

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentIssues related to the contents of the documentation website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions