08.08.14, 15:24
hi to all
i was wondering if is possible to dynamically modify the palette,
for example if i check a boolen components other options will appear.
i tried something like the code below, but i cannot manage to reach the 'components' object from the onChange function.
Any hint on how to do it?
thanks
var components = {
//some components
advanced: {type:'boolean',
label:'Advanced',
value:false,
onChange:function(val){
if(val == true){
//in some way add other components
} else {
//remove components
}
}
},
};