interface CoreGraphManipulationExt {
    removeScratch(namespace: string): this;
    scratch(namespace?: string): any;
    scratch(namespace: string, value: any): this;
}

Hierarchy (view full)

Methods

  • Set the scratchpad at a particular namespace, where temporary or non-JSON data can be stored. App-level scratchpad data should use namespaces prefixed with underscore, like '_foo'.

    If no parameter provided, the entire scratchpad will be returned. If only namespace provided, the scratchpad with the namespace will be returned.

    Parameters

    • Optionalnamespace: string

      A namespace string.

    Returns any

  • Parameters

    • namespace: string
    • value: any

    Returns this