nativescript-carousel icon indicating copy to clipboard operation
nativescript-carousel copied to clipboard

IOS set selectedPage when finite="true" is set in angular

Open Panimaster opened this issue 5 years ago • 3 comments

When you set the selectedPage index programmatically in .ts file while the finite property is set to true, the carousel does not show the requested slide. If you delete the finite="true" property it does work but you cant prevent the loop behaviour.

Html: <Carousel (pageChanged)="pageChanged($event)" row="0" [items]="items" [selectedPage]="selectedPageIndex" finite="true" bounce="false"></Carousel>

TS: public selectedPageIndex: number = 2

Panimaster avatar Dec 09 '19 16:12 Panimaster

@Panimaster Did you overcome this problem ?

valera1401 avatar Jun 24 '20 09:06 valera1401

Unfortunately not @valera1401

Panimaster avatar Jul 03 '20 05:07 Panimaster

The indicator shows the right page ( 2 ), but the page is the first: image

Any help ?

arturikoX avatar Feb 23 '21 17:02 arturikoX