Skip to main content

editMode is always false in context in dashboard widget

  • October 31, 2022
  • 3 replies
  • 1010 views

timovanderkamp
Forum|alt.badge.img

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

monday.get("context").then(console.log)

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.

image

3 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • November 2, 2022

Hello @timovanderkamp and welcome to the community!

I hope you like it here 💪

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.

Cheers,
Matias


timovanderkamp
Forum|alt.badge.img
  • Author
  • New Participant
  • November 2, 2022

Thank you for your reply Matias


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • November 3, 2022

You are welcome!

Let us know if you have any other questions 🙂

Cheers,
Matias