How to display items disabled if device is offline

Hi Serhiy,
as far as I know, there is no way to mark controls as disabled or “grayed-out”.
But you can make the controls invisible if the device is offline:
Disable a Oh-button - Add-ons / UIs - openHAB Community