As I understand, counter ui control only work with separate click for increase decrease. Is there any workaround to enable inc/dec while mouse is hold on +/- button?
Hello,
there is not a ready solution, but you can set own mousedown, mouseup handlers for button inputs and increase/decrease Counter value as you need ( use setValue(value) to set value ):
webix.ui({
view: "counter",
on:{
onAfterRender: function(){
var parentNode = this.$view.firstChild.firstChild;
var inputs = parentNode.getElementsByTagName("input");
var prevBtn = inputs[0];
var nextBtn = inputs[2];
/* your event handlers here */
}
}
});