With previous versions this code worked for rendering dynamic data.
$.getJSON("menu.json",
function (data) {
for (var i = 0; i < 2; i++) {
var menu = sym.getSymbol("Menu").createChildSymbol("menuthumbs", "contentthumbs");
var ant = menu.getSymbolElement();
ant.css({
"background-size": "contain",
"float": "left"
});
ant.attr("id", "producttype" + i);
ant.addClass("producttypeC");
menu.$("titleholder").html(data[i].title);
menu.$("arrowselect").data("myindex", i);
menu.$("imageholder").css({
"background-image": "url(" + data[i].image + ")"
});
}
});
On 2014.1 version it is rendering only the last data of the JSON file.
I tried also with getChildSymbols with no luck.
Does someone know why is this happening?