Hi there!
I am working to edit a simple front-end around they shapediver viewer and am stuck with how to reference a dropdown list in my SD model parameters.
An example to illustrate my question:
I have a functioning button:
//add new parameters to export pattern
api.apps.controls.createParameter({
type: api.apps.controls.parameterTypes.BUTTON,
update: function(selecetedStyle) {
//set parameter to process export
api.parameters.updateAsync({
name:"model_processExport",
value:true
}).then(function(){
api.exports.requestAsync({
name:"export_shade_pattern"
}).then(function(){
//unset parameter to process export
api.parameters.updateAsync({
name:"model_processExport",
value:false
});
});
});;
},
name: 'Export Pattern',
order: 200
});
The parameter type BUTTON is where my question arises. I have found STRING to work here as well, but cannot find the documentation on dropdown menus, sliders etc.
Any reference, tips or example snippets are more than welcome. Thanks for the support!