3 Replies Latest reply on Dec 16, 2015 8:56 AM by meghan RSS
    veronicamih Creator

    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