The value of the event data attribute contains the name of a JavaScript function which will be used as callback once the event has been triggered.
Caution:
Deprecated as of UI5 version 1.120, replaced by XML View.
The following code snippet gives an example how a change of Input
results in an alert with its new value when the focus is lost:
<script>
function handleChange (oEvent) {
alert (oEvent.getSource().getValue());
}
</script>
<div data-sap-ui-type="sap.m.Input" data-value="Change me!" data-change="handleChange"></div>
Currently, OpenUI5 only supports to specify the name of a callback function. You can define callback functions within any class, see the following code example:
<div data-sap-ui-type="sap.m.Input" data-value="Change me!" data-change= "my.company.MyClass.handleChange"></div>