nativescript-carousel
nativescript-carousel copied to clipboard
IOS set selectedPage when finite="true" is set in angular
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 Did you overcome this problem ?
Unfortunately not @valera1401
The indicator shows the right page ( 2 ), but the page is the first:
Any help ?