I need to know if there is a way to track when the settings panel is opened or closed from a viewItem.
If you also implement a Settings Panel, yes. You can see a sample here:
If you do not implement your own Setting Panel plugin the answer is no.
I think I didn’t explain myself clear. When in the Live tab, you have a settings button, top right on the screen, which opens the side panel from where you can drag components on to the actual view. My idea is to track when this button is selected (in color orange).
You are right, that is not the scenario I answered. I believe you are not interested in the Settings Panel but in setup mode, these terms can be confusing so it might be a good thing that I get to explain both.
You can find out if setup mode is activated by listening for a message.
You get both System.ModeChangedIndication and SmartClientWorkSpaceStateChangedIndication.
See the Message Tester sample to see this in use.
Perfect! That’s going to come in handy. Thanks a lot!