datitisev here's a simple couple functions I wrote to test everything without the complication of fetching data. The slider function tnsWrap() needs to find an element in the DOM named ".my-slider":
function silly_boxes(){
var fewboxes = [];
for(var i=1; i<10; i++) {
fewboxes.push( m("box"+i,{style:"background: orange"},"box: "+i) );
}
return fewboxes;
}
var makeBoxes = {
oninit: console.log("init works"),
config: tnsWrap(),
view: function(){
return [
m(".my-slider",{style:"background: blue"},[
silly_boxes()
]),
console.log("made a box")
]
}
}
m.mount(socialrow, makeBoxes);
reading up on the 0.2 spec now to see how to set the Initialized variable