Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when go back to the page with slides added dynamically #75

Open
terreb opened this issue Oct 4, 2016 · 4 comments
Open

Bug when go back to the page with slides added dynamically #75

terreb opened this issue Oct 4, 2016 · 4 comments

Comments

@terreb
Copy link

terreb commented Oct 4, 2016

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.

@JoshDSommer
Copy link
Owner

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

cheers.

@terreb
Copy link
Author

terreb commented Oct 13, 2016

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

@josempbrites
Copy link

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

@markosole
Copy link

markosole commented Jun 23, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants