Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is not a specific API to retrieve the property of a widget, but the following code can be used for this purpose:

Code Block

getObj(id).pui.properties[propertyName];

Paramaters:

  • id - element identifierthe widget id
  • propertyName - the name of the widget's property

Examples:

Code Block

var buttonWidth  = getObj("Button1").pui.properties["width"];
var myWidgetData = getObj("Image1").pui.properties["user defined data"];

...