nativescript-slides
nativescript-slides copied to clipboard
Bug when go back to the page with slides added dynamically
A bug occurs when we go back to the page with slides added dynamically on both iOS and Android.
In order to reproduce the issue please do the following:
- in nativescript-slides/demo/dynamic-page.ts add:
export function openPage() {
var navigationEntry = {
moduleName: "./views/main-page",
animated: false
};
frameModule.topmost().navigate(navigationEntry);
}
- in nativescript-slides/demo/main-page.ts add:
export function goBack() {
frameModule.topmost().goBack()
}
- in nativescript-slides/demo/main-page.xml add inside GridLayout:
<Button text="Go Back" tap="goBack" row="1" />
- in nativescript-slides/demo/dynamic-page.xml add inside GridLayout:
<Button text="open sub page" tap="openPage" row="1" />
- Run the app -> Dynamic slides -> open sub page -> go back
Please let me know if you need any further info on that.
@terreb I just want to say how much i appreciate the detailed info on how to recreate this. working on a fix.
cheers.
No problem! This is so useful plugin, that we awfully need it working:)
Great plugin! a solution for this issue would be really great. @TheOriginalJosh
Hi guys, I am looking how to add slides dynamically with pure javacsript. I have tried this but it does not show slides at all:
<Slides:SlideContainer id="slideContainer" pageIndicators="true" items="{{ sviArtikli }}">
<Slides:Slide class="slide-1">
<Label text="{{ opis_artikla }}" />
</Slides:Slide>
</Slides:SlideContainer>
I have managed to make progress but example below makes only one slide from Object.
<Repeater items="{{ sviArtikli }}">
<Repeater.itemTemplate>
<Slides:SlideContainer id="slideContainer" pageIndicators="true" items="{{ opis_artikla }}">
<Slides:Slide class="slide-1" >
<Label text="{{ opis_artikla }}" />
<Label text="moj tekst 1" />
</Slides:Slide>
</Slides:SlideContainer>
</Repeater.itemTemplate>
</Repeater>
Can someone point me in right direction please. Thanks!