Skip to content
tianmo edited this page Aug 30, 2012 · 2 revisions

记录操作历史,实现回退等功能


方法

.clear()

清除历史记录

.isEmpty()

历史记录是否为空

.canUndo()

是否可以撤销

.undo()

撤销

.canRedo()

是否可以重做

.redo()

重做

.undoableEditHappened(undoableEdit)

增加一条历史记录

  1. undoableEdit:历史记录对象

上一个:Ext.graph.Clipboard 下一个:Ext.graph.OutLine

Clone this wiki locally