Web Component: j-Watcher
j-Watcher
This component executes the code defined in the <script type="text/js"></script>
tag.
- jComponent
v19|v20
<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 indatasource
property)
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.
Author
- Peter Širka petersirka@gmail.com
- License
Created
21. january 2022
Updated
21. january 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com