View source: R/utils.R View source: R/annotate_gui.R
create_action | R Documentation |
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.
create_action(type, data, reverse_data = NULL)
create_action(type, data, reverse_data = NULL)
type |
Character string specifying the type of action |
data |
List containing the action data |
reverse_data |
Optional list containing data for reversing the action |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.