Greetings community. I am developing a widget and in its configuration window I have a dropdown list type field to which I must add options dynamically, this through the SDK. Thanks in advance.
Hello there @Jonnathan and welcome to the community!
I hope you like it here
As of today there is no way of passing dynamic options for a dropdown field in the settings of a dashboard widget.
Let us know if you have any questions!
Thank you very much for your reply. However exploring a little, I found the widget called “Battery”, in its configuration window has an option called ‘Choose which “Status” columns to include’, list that is updated if a new column of type status is added. Is this possible from React js? if so, do you have any example of its implementation? Thank you very much.
Hello again @Jonnathan,
You can create your own settings inside your view with react.
I do not have an example, but in that case, you could use monday’s SDK to get the context in which the widget is being used, in it, you will get the board IDs of the connected boards.
Then you can use that information to query for the list of labels a dropdown column has, and display said list for the user to select the ones that are relevant.
Again, this would not be in the native settings, but inside your own view, inside the widget.
Let me know if you have any questions!