How do I deactivate each element in Viewer?

How do I deactivate each element?
How do they behave as if they were deactivated visually and functionally?
For example, to prevent the execution of a registered event and to make it unclickable

What are you referring to as deactivating each element? What’s your use case?