Custom widgets

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
grmarks
Profound User
Posts: 30
Joined: Thu Apr 29, 2010 9:32 pm
First Name: Glenn
Last Name: Marks
Company Name: Pacific Brands
Country: Australia
Contact:

Custom widgets

Post 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 ?
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: Custom widgets

Post 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)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests