I know you can add metadata through the API, but I cannot find documentation on how to add meta data via web plugins, I’d like to add a “session_id” to the group of objects I create via a single button and I need a way to group them up for future use.
Answered
How to attach meta data via Webplugins
Best answer by Falk Kühnel
Hi safis!
It is quite simple, just add the metadata, when you create the widgets.
const APP_ID = '123456789'; // your app id
miro.board.widgets.create({
type: "image",
url: URL_ROOT + "cards/" + cardName + ".jpg",
metadata: {
[APP_ID]: {
card: true,
cardName: cardName
}
},
x: deck.x,
y: deck.y,
rotation: deck.rotation
})
Have fun!
Falk
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.