cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Custom widget binding properties

vmihai
1-Newbie

Custom widget binding properties

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.

2015-09-22_1433.png

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

1 ACCEPTED SOLUTION

Accepted Solutions

Binding sources -- not binding targets -- appear in the drop down.

View solution in original post

3 REPLIES 3

Binding sources -- not binding targets -- appear in the drop down.

I see. I didn't realized that.  Thank you.

mhollenbach
5-Regular Member
(To:vmihai)

Remember to mark Ben's answer as correct if it helped you!

Top Tags