Methods

canUndo

() => Promise<boolean>
🚦 Rate limit: Level 1

Experimental feature Experimental

Use this method to check if an undo operation can be performed on the board. An undo is only possible if the user has previously performed an action.

    if (await miro.board.experimental.history.canUndo()) {
        // Perform undo
        await miro.board.experimental.history.undo()
    }

undo

() => Promise<void>
🚦 Rate limit: Level 1

Experimental feature Experimental

Use this method to undo any operation performed by the user on the board. It works the same way as the UI control or pressing CTRL+Z or CMD+Z.

Make sure to check if the operation can be undone first by using miro.board.experimental.history.canUndo().

    if (await miro.board.experimental.history.canRedo()) {
        // Perform redo
        await miro.board.experimental.history.redo()
    }

canRedo

() => Promise<boolean>
🚦 Rate limit: Level 1

Experimental feature Experimental

Use this method to check if a redo operation can be performed on the board. A redo is only possible if the user has previously undone an action.

    if (await miro.board.experimental.history.canRedo()) {
        // Perform undo
        await miro.board.experimental.history.redo()
    }

redo

() => Promise<void>
🚦 Rate limit: Level 1

Experimental feature Experimental

Use this method to redo any operation undone by the user on the board. It works the same way as the UI control or pressing CTRL+SHIFT+Z or CMD+SHIFT+Z.

Make sure to check if the operation can be redone first by using miro.board.experimental.history.canRedo().

    if (await miro.board.experimental.history.canRedo()) {
        // Perform redo
        await miro.board.experimental.history.redo()
    }

All properties

PropertyType
canRedo
() => Promise<boolean>
canUndo
() => Promise<boolean>
redo
() => Promise<void>
undo
() => Promise<void>