SheetXL - v1.0.2
    Preparing search index...

    What a movable's content is given when created.

    interface CreateOptions {
        addWatch: AddWatch;
        beginPersistResource: () => IResourceCollection.IPersistScope<
            IResource.JSON,
        >;
        description?: string
        | null;
        fromResourceId?: (resourceId: number) => IResource;
        getMovable?: () => IMovable | null;
        getRange: (address: string) => ICellRange | null;
        getStyles?: () => IStyleCollection | null;
        json?: any;
        name?: string | null;
        transactions?: IStore;
        type: string;
        deleteFromContainer?(options?: ITransaction.OperationOptions): void;
        isReadOnly?(): boolean;
        setContainerReadOnlyCallback?(callback: ReadOnlyCallback): void;
    }

    Hierarchy (View Summary)

    Index
    addWatch: AddWatch

    Hands a formula the content names to the calculation engine, which keeps its references on the cells they name through inserts, deletes, cuts, sheet renames and undo, and calls back with the formula each time its text changes. The same contract as ICellRanges.addWatch without the range: a content has no location its formulas are evaluated over, only its anchor.

    Not provided for content outside a workbook; its references then read as set.

    beginPersistResource: () => IResourceCollection.IPersistScope<IResource.JSON>

    Useful for load/save/copying.

    description?: string | null

    The alternative text.

    fromResourceId?: (resourceId: number) => IResource

    Returns an IResource from the resourceId or null if not found.

    getMovable?: () => IMovable | null

    Returns the movable that places the content. Not provided for content that has none.

    getRange: (address: string) => ICellRange | null

    Resolves an address against the workbook the content lives in. Not provided for content outside a workbook.

    getStyles?: () => IStyleCollection | null

    Returns the styles the content's theme references resolve against. Not provided for content outside a workbook.

    json?: any

    The content's JSON, as saved.

    name?: string | null

    The name. Content that a movable places is given one when this is empty.

    transactions?: IStore

    A transaction store that can be used to undo/redo changes to the model.

    type: string

    The content's type, as registered.

    • Notify if the readonly has been updated from the container.

      Parameters

      • callback: ReadOnlyCallback

      Returns void