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

Bug when go back to the page with slides added dynamically

Open terreb opened this issue 9 years ago • 4 comments

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 avatar Oct 04 '16 12:10 terreb

@terreb I just want to say how much i appreciate the detailed info on how to recreate this. working on a fix.

cheers.

JoshDSommer avatar Oct 13 '16 01:10 JoshDSommer

No problem! This is so useful plugin, that we awfully need it working:)

terreb avatar Oct 13 '16 08:10 terreb

Great plugin! a solution for this issue would be really great. @TheOriginalJosh

josempbrites avatar Mar 06 '17 15:03 josempbrites

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!

markosole avatar Jun 23 '18 20:06 markosole