Page 1 of 1

Custom widgets

Posted: Mon Jan 24, 2011 8:42 pm
by grmarks
I have tried creating custom widgets - buttons for "Exit" and "Previous" - not too ambitious. I copied the existing custom widget and changed it to use an existing style. All works fine.
In the defaults section I added text "Exit" and "Previous".
I would like to define a bound RPG indicator in the buttons. How do I do this ?
Is there a manual showing all the available options and attributes that can be set for custom widgets ?

Re: Custom widgets

Posted: Fri Jan 28, 2011 10:23 am
by Rob
The defaults section near the bottom of the file should be like this:

Code: Select all

  // additional default property values can be specified here
  defaults: {
    "button style": "Custom Button",
    "width": "325px",
    "color": "#000000",
    "response": {
                "fieldName": "doExit",
                "dataType": "indicator",
                "formatting": "Indicator",
                "indFormat": "1 / 0"
            }
  }  
I have added the response property. doExit is an indicator bound to the button. Don't forget to add the comma after the previous color line.

Note: Adding the response property to a custom widget is not fully supported until you have installed Profound UI version 2.2.4 which will be published today (Jan 28, 2011)