Interface Saveable

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

Implemented by

Properties

autosaveable?: boolean

If false, the saveable will not participate in autosaving.

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