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 ?
Custom widgets
-
- 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:
- 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
The defaults section near the bottom of the file should be like this:
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)
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"
}
}
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)
Who is online
Users browsing this forum: No registered users and 1 guest