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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Custom widget binding properties

vmihai
12-Amethyst

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

ACCEPTED SOLUTION

Accepted Solutions
bconnell
7-Bedrock
(To:vmihai)

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

View solution in original post

3 REPLIES 3
bconnell
7-Bedrock
(To:vmihai)

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

vmihai
12-Amethyst
(To:bconnell)

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

mhollenbach
12-Amethyst
(To:vmihai)

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

Announcements


Top Tags