create_action: Create and manage undo/redo action

View source: R/utils.R View source: R/annotate_gui.R

create_actionR Documentation

Create and manage undo/redo action

Description

Creates an action object for the undo/redo system, containing information about the type of action, the data involved, and how to reverse the action.

Creates an action object for the undo/redo system, containing information about the type of action, the data involved, and how to reverse the action.

Usage

create_action(type, data, reverse_data = NULL)

create_action(type, data, reverse_data = NULL)

Arguments

type

Character string specifying the type of action

data

List containing the action data

reverse_data

Optional list containing data for reversing the action

Value

List containing:

  • type: Action type identifier

  • data: Action data

  • reverse_data: Data for reversing the action

  • timestamp: Time the action was created

List containing:

  • type: Action type identifier

  • data: Action data

  • reverse_data: Data for reversing the action

  • timestamp: Time the action was created


textAnnotatoR documentation built on April 3, 2025, 7:35 p.m.