We have provided handy expressions as an alternative to arrow functions for older browsers. The "next" Property expects a function or an arrow function (an action) which will be executed on that particular event.
$x.alert('Alert message')
This will display an alert message when the event is raised.
$x.appScope("property",value) // OR $x.appScope({ property1: value1, property2:value2 })
This will set given properties and values in application scope.
$x.clearErrors(e)
This will clear all validation errors for given control or element.
$x.confirm(msg,actions)
This will display a confirmation dialog before executing given actions. Actions can be an array of expressions or function.
$x.data("property",value) // OR $x.data({ property1: value1, property2:value2 })
This will set given properties and values in data of current control.
$x.focus(e)
This will set focus to specified control or element after the event.
$x.if(test,actions)
This will execute given actions only if input "test" is true.
$x.isValid(control,actions)
This will execute given actions only if control does not have any validation errors. If there are any validation errors, an alert with errors will be displayed.
$x.localScope("property",value) // OR $x.localScope({ property1: value1, property2:value2 })
This will set given properties and values in application scope.
$x.localWindow(template,props,scope,next)
This will create a new window from given template. It will set given properties and scope values, since this will create a new window with localScope, scope values will be merged with new scope. On success of window's close method, next will be invoked.
$x.owner("property",value) // OR $x.owner({ property1: value1, property2:value2 })
This will set given properties and values of current control.
$x.scope("property",value) // OR $x.scope({ property1: value1, property2:value2 })
This will set given properties and values of scope of current control.
$x.stop(test,msg)
This will throw an exception with message "msg" if the condition "test" is true, this will stop processing further actions in current expressions.
$x.timeout(delay,actions)
This will invoke actions after given "delay" in milliseconds.
$x.window(template,props,scope,next)
This will create a new window from given template. It will set given properties and scope values. On success of window's close method, next will be invoked.