editMode is always false in context in dashboard widget

I am trying to use the monday js sdk to check if the widget view is in fullscreen mode or if the settings bar is open.

This is the code that I am using right now


It seems like “viewMode” is always “widget” and “editMode” is always “false”

Is there a way to detect the state of the dashboard widget?

I found that opening the “fullscreen settings mode” by clicking the full screen button does make the “viewMode” change to “fullscreen”, however the settings button does not give this behavior.


Hello @timovanderkamp and welcome to the community!

I hope you like it here :muscle:

For viewMode for widgets specifically, you will only get that (widget). The SDK does not provide the information about the widget being in fullscreen or not.

As of today there is no way to check that information via SDK.


Thank you for your reply Matias

You are welcome!

Let us know if you have any other questions :slightly_smiling_face: