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

Dynamic addition of custom components in the slider #117

Open
ESISARPI24 opened this issue Jun 7, 2018 · 0 comments
Open

Dynamic addition of custom components in the slider #117

ESISARPI24 opened this issue Jun 7, 2018 · 0 comments

Comments

@ESISARPI24
Copy link

Hi, I'm currently using NativeScript with Angular, and I'm trying to reach the result of this code:

<SlideContainer id="slides" row="0"  loop="true" (changed)="onChanged($event)" angular="true" #slides>
             <Slide>
                    <custom-component1></custom-component1>
            </Slide>

            <Slide>
                    <custom-component2></custom-component2>
            </Slide>

            <Slide>
                    <custom-component3></custom-component3>
            </Slide>

            <Slide>
                    <custom-componentN></custom-componentN>
            </Slide>
</SlideContainer> 

into the .ts, without knowing how many element I will add.
I've tried to use your dyanamic example https://github.com/TheOriginalJosh/nativescript-slides into the doc, where you use the .addChild() function, but for the moment I can only add dynamically elements specific to NativeScript like Label.

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

1 participant