kopia lustrzana https://github.com/c9/core
Add onchange event handler
rodzic
41242004e0
commit
8045127da8
|
@ -309,7 +309,11 @@ define(function(require, exports, module) {
|
||||||
value: options.path
|
value: options.path
|
||||||
? createBind(options.path)
|
? createBind(options.path)
|
||||||
: (options.defaultValue || ""),
|
: (options.defaultValue || ""),
|
||||||
realtime: typeof options.realtime !== "undefined" ? options.realtime : 1
|
realtime: typeof options.realtime !== "undefined" ? options.realtime : 1,
|
||||||
|
onafterchange: function(e) {
|
||||||
|
if (options.onchange)
|
||||||
|
options.onchange({ value: e.value });
|
||||||
|
},
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
|
Ładowanie…
Reference in New Issue