zng_wgt_undo_history

Function default_undo_entry_fn

Source
pub fn default_undo_entry_fn(args: UndoEntryArgs) -> impl UiNode
Expand description

Default UNDO_ENTRY_FN_VAR.

Returns a Button! with the UNDO_BUTTON_STYLE_FN_VAR and the entry displayed in a Text! child. The button notifies UNDO_CMD or REDO_CMD with the entry timestamp, the command is scoped on the undo parent of the caller not of the button.