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

Tempo 2.0 and Nested Lists #63

Open
diedric opened this issue Feb 20, 2013 · 5 comments
Open

Tempo 2.0 and Nested Lists #63

diedric opened this issue Feb 20, 2013 · 5 comments

Comments

@diedric
Copy link

diedric commented Feb 20, 2013

Hello,
Congratulations for your framework.

I was working with Phonegap, JQM and Tempojs1.8 and when I've tried to run the app in Android 4.0 show empty item in lists.
I read somthing about that, and this fix with 2.0 version.

The problem is nested lists repeat the values in child nodes. These nested child have the same {{NameVariables}} than parents.

Thank's

Josep

@mrolafsson
Copy link
Contributor

Hi Josep - and thank you! I've only tested Tempo 2.0 briefly in an Android emulator and it seemed to work fine. I thought there were no issues with recursion like that? Is this example not like what you describe: http://tempojs.com/2.0/examples/recursion Let me know if I can help!

@mrolafsson
Copy link
Contributor

Any further thoughts on this?

@diedric
Copy link
Author

diedric commented Feb 26, 2013

Thank you very much!!!
I tried it and runs ok. The problem was the tag "data-template-for" in childs because I wrote "data-template".

Now I'm working in a way to refresh the data without reload the page. I've tried the clear action but then disapear the template.

Best regards

Josep

@mrolafsson
Copy link
Contributor

Great. Yes, the way to do that would be to get the rendering engine in a variable:
var tempo = Tempo.prepare('yourcontainer');

and then use append method iteratively:
tempo.append(yournewdata);

Let me know if you have issues.

@mrolafsson
Copy link
Contributor

On data-template-for yes, sorry there were some syntactical changes between 1.8 and 2.0. Thanks for your support!

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

2 participants