Binding expressions are an alternative way to use JavaScript to customize the user experience. Instead of using an event handler function from the Events dropdown, binding expressions are accessed using the Expression tab of the Binding dialog:
In the preceding screenshot, the title of customerDetailsPanel
is bound to the following expression:
"Details for " + ${customerDojoGrid.selectedItem.company}
This causes the panel's title to look like the following:
Studio informs you of the presence of the expression in the Properties panel by displaying expr: and the beginning of the expression in the bound property:
The same result could be achieved by calling setTitle()
in a custom event handler for the customerDojoGrid's
onSelect()
event:
customerDojoGridSelect: function(inSender) { this.customerDetailsPanel.setTitle("Details for " + inSender.selectedItem.getData().company); },