don't miss

NEW: Stable release of group and ungroup methods in Web SDK

  • 2 January 2024
  • 0 replies
  • 53 views

Userlevel 6
Badge +4

Hey everyone!

We're excited to share that we've released two new methods in the Web SDK which can be used to group and ungroup items programmatically. With this stable release, you can now use the miro.board.group and group.ungroup methods to manage items, respectively.

Example of grouping items and adding them to a frame

const shape = await miro.board.createShape()
const card = await miro.board.createCard()
const text = await miro.board.createText()

const items = [shape, card, text]

const group = await miro.board.group({items})
const frame = await miro.board.createFrame();

// shape, card and text will also be added to the frame
// you can check their parentId property after this operation
await frame.add(group)

Groups do not support the following capabilities:

  • Mind maps
  • Tags
  • Metadata

For more details on these new methods, refer to our documentation on group and ungroup methods in the Web SDK.


0 replies

No replies yet...

Reply