Skip to content
EliteChart

HistoryState

Documentation


Documentation / @elitechart/core / HistoryState

Defined in: history/history-stack.ts:70

Snapshot of stack availability + size — passed to onChange.

Example

code
const s: HistoryState = { canUndo: true, canRedo: false, size: 4 };

Properties

canRedo

code
readonly canRedo: boolean;

Defined in: history/history-stack.ts:72


canUndo

code
readonly canUndo: boolean;

Defined in: history/history-stack.ts:71


size

code
readonly size: number;

Defined in: history/history-stack.ts:73