Skip to main content

Hi there,

the following code works great for me.

wis = await miro.board.selection.get()
text = wis[0].plainText
console.log(text)

Now I would like to get the dates when the widget (sticker) was created and which date it has been last modified.

I can’t find the correct documentation on this topic. Can someone help me?

Kind regards

Austin

Hi, 

 

You are right, as of today, it is not possible to retrieve this information with the Web SDK. It is something we are planning to update in the future. I cannot think about an easy way of doing this. To know when a widget has been created you could use the even WIDGETS_CREATED and store the date but we do not offer an event for WIDGETS_UPDATED yet. WIDGETS_TRANSFORMATION_UPDATED will be raised only when the geometry of a widget changes, not the text.


Reply