Advanced AppLab Features

There’s one more solution using the CSS pointer-events property and the setStyle() command. To disable a button using CSS, just set the style of the button like so:

setStyle("button", "pointer-events: none");

and then re-eneable with:

setStyle("button", "pointer-events: auto");

Here’s a quick demo that adds changing the button color for better visual cuing.

1 Like