Watcher
Runs the code in a script tag of type text/js whenever the bound value changes, with access to value and path
This component executes the code defined in the <script type="text/js"></script> tag.
<script type="text/js">
// value {Object} a value bound according to the path
// path {String} a path where the value was bonded
// type {Number} binding type (0: init, 1: manually, 2: by input, 3: default value)
// element {jQuery element} a current element
// datasource {Object}
// component {jComponent}
</script>Configuration:
delay {Number}a delay for evaluating code (default:0)- NEW:
datasource {String}a link to the datasource (it will be stored indatasourceproperty)
IMPORTANT:
You need to use <script type="text/js"> or <script type="text/plain">. Don't use the script element without type or with type text|application/javascript because the script will be evaluated by the browser automatically.




