Hi everyone.
I know that you can show/hide a widget for current user using clientVisible property as shown here . But what I want is to be able to hide/show a group of widgets for all users.
For example, I have a group of images stacked together on top of each other. The images are grouped together in miro.
What I want to do is to be able to click on an image, so that the upper image gets hidden and lower image gets show and vice versa.
What I have been able to achieve so far is to hide/show “text groups” using Miro SDK and using metadata property to store the states.
FOR EXAMPLE: On first click, bottom text shows
On second click, bottom text hides, upper text shows
I am using custom plugin for this. I want to do this for images instead of text but I guess metadata on images is not working. Any updates? So far, it works fine on other widgets except image widgets which doesn’t throw any error but it gets stuck on updating.
let update = await miro.board.widgets.update(ids)
Any directions how can I toggle between stacked images using SELECTION_UPDATED event.