Loading...
DataComputed JS API
The DataComputed
component extends the DataBind
component, it inherits from its API.
Options
compute
- Type:
string
- Default:
''
Use this option to define a piece of JavaScript code to transform the value before it is updated on the target. The value
and target
variables can be used to access both the current value of the binding and the DOM element targeted by the changes.
Example
Methods
set(value: string | boolean | string[])
Set the value for the current instance.
Params
value
(string | boolean | string[]
): the value to set
get()
Get the current value.