動的変数の変更に関するイベントハンドラを設定します。
Syntax:
widget.onChangeVal(name, callback)Arguments:
Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | String | ○ | 変数名 | |
callback | Function | ○ | コールバック |
callback arguments:
Name | Type | Description |
|---|---|---|
values | Object |
values Properties
Name | Type | Description |
|---|---|---|
newVal | Any | 変更後の値 |
oldVal | Any | 変更前の値 |
key | String | 変数名 |
widget.onChangeVal("name", function(values){
console.log(values.newVal);
});