Add onchange event handler

pull/378/head
Lennart Kats 2016-11-12 17:08:18 +00:00
rodzic 41242004e0
commit 8045127da8
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -309,7 +309,11 @@ define(function(require, exports, module) {
value: options.path
? createBind(options.path)
: (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;