how to render data received from JSON in Social App with OpenSocial Templates!
I am getting data in the Social App in form of JSON. I am using OpenSocial v0.9 Templates to render data in the App with the t开发者_如何转开发ag but the problem is I want to render data in tabular form, but with it repeats items in a row so is there any way possible!
Regards, Abhishek
Did you look at the <os:Repeat> tag? Maybe you can do something like this:
<script type="text/os-template" require="mytable">
<table>
<os:Repeat expression="${mytable.rows}">
<tr>
<td>${Cur.cell1}</td>
<td>${Cur.cell2}</td>
</tr>
</os:Repeat>
</table>
</script>
精彩评论