widget ids generated with type-specific iterators

demo session updated
This commit is contained in:
jean-emmanuel 2015-09-24 17:10:54 +02:00
parent b9845a30ca
commit b07ec26cb1
2 changed files with 35 additions and 13 deletions

View file

@ -37,8 +37,33 @@
})
}
return tab
}())
tabs.push(function(){
var tab = {}
tab.widgets = new Array()
for (i in [0,1,2,3,4,5]) {
tab.widgets.push({
type:'strip',
width:2,
widgets: [
{
label:'Absolute XY',
type:"xy",
absolute:true,
target:target
},
{
label:'Relative XY',
type:"xy",
target:target
}
]
})
}
return tab
}())