Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello everyone,
I am building a custom compass widget and I am not seeing the names of the properties of the widget appearing as a binding target in the dropdown menu of the widget. Nevertheless I can configure the bindings from the Configure Bindings menu.
What should I do to have them appear also in the dropdown menu like for the other ThingWorx widgets ?
This is how I declared the properties in the compass.ide.js file :
this.widgetProperties = function () {
return {
"name": "compass!",
"description": "A compass Widget",
"category": ['Common'],
"properties": {
"Pitch": {
"baseType": "NUMBER",
"defaultValue": 0,
"isBindingTarget": true
},
"Roll": {
"baseType": "NUMBER",
"defaultValue": 0,
"isBindingTarget": true
},
"Orientation": {
"baseType": "STRING",
"defaultValue": 0,
"isBindingTarget": true
}
}
};
};
Thank you,
Veronica
Solved! Go to Solution.
Binding sources -- not binding targets -- appear in the drop down.
Binding sources -- not binding targets -- appear in the drop down.
I see. I didn't realized that. Thank you.
Remember to mark Ben's answer as correct if it helped you!