Interface Saveable

interface Saveable {
    dirty: boolean;
    onContentChanged: Event<void>;
    onDirtyChanged: Event<void>;
    applySnapshot?(snapshot): void;
    createSnapshot?(): Snapshot;
    revert?(options?): Promise<void>;
    save(options?): MaybePromise<void>;
    serialize?(): Promise<BinaryBuffer>;
}

Implemented by

Properties

dirty: boolean
onContentChanged: Event<void>

This event is fired when the content of the saveable changes. While onDirtyChanged is fired to notify the UI that the widget is dirty, onContentChanged is used for the auto save throttling.

onDirtyChanged: Event<void>

This event is fired when the content of the dirty variable changes.

Methods