3.2.0

Disabling a button in 2.0.2

From the 2.0.2 new features list I understood we can now disable all controls. Does anyone know how to enable/disable a button? I tried the following:

var obj = new AW.UI.Button;
obj.setControlText("Button1");

obj.onClick= function() {
alert("Button clicked");
}

obj.setAttribute('disabled', 'true');
document.write(obj);
----
This however disables the button text but still allows you click on it. In addition it still highlights when you move the mouse over it.

Please advice.

Maurice
March 9,
Should be

obj.setControlDisabled(true);

see also /examples/controls - all/disable.htm
Alex (ActiveWidgets)
March 9,
Sometimes life is easy.

Thanks a lot
Maurice
March 10,

This topic is archived.

See also:


Back to support forum