我可以知道点击数字文本框的方向 - 向上还是向下?
$('<input name="' + options.field + '"/>').appendTo(container).kendoNumericTextBox({
min: 1,
max: 9,
decimals: 1,
format: "n0",
value: 1,
spin: function(el) {
var count = this.value(),
model = options.model;
model.set("quantity", count);
addCharacteristic(count);
setPrice(e, count, model);
}
});
}
答案 0 :(得分:0)
据我所知,kendo
中没有默认机制来执行此操作。
NumericTextBox
有2 events change
和spin
,他们无法为您提供帮助。
我认为实现此目标的最佳方法是在NumericTextBox
点击事件的上/下按钮上添加事件侦听器。