DHTML Touch - dhx.ui.counter

I want to disable dhx.ui.counter on a certain condition.How to disable the control.Please help me.

how can I set max and min value on runtime in dhx.ui.counter?

$$(“mycounter”).define(“max”, 100);

Will define new “max” limit. Similar can be done to the “min”
As for disabling - currently there is no such API