How do I access page fragment's custom properties within an event handler of one of its widget? For example, I'm trying to access them in an OnLoad
event of the page fragment itself like this:
function SumBoxOnDataLoad (widget) {
widget.descendants.TextBox.value = Currencies [widget.properties.currency]+widget.properties.value;
}
...and widget.properties
is undefined. According to the API, even if I use widget.root
, which points to the same page fragment, there's nothing there resembling properties to work with.
It depends on what you are trying to do. Basically, there are two major use cases:
Further reading:
Page Fragment Custom Properties