Sg2.9
Dynamically modify a palette
Recent RSS
Dynamically modify a palette
From:  mikima
Date:  14. October 2011, 14:49

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
}
}
},
};

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Cross Hatch Raster 15.03.12