Interface ActionContextBeta

Interface representing the context for an action.

interface ActionContext {
    concept?: string;
    dataTransfer?: IDataTransfer;
    eventTopicPrefix?: string;
    graph?: any;
    item?: WorkspaceItem<any>;
    items?: WorkspaceItem<any>[];
    selectedItems?: WorkspaceItem<any>[];
    then?: ((result?: {
        records?: Entity[];
        relationships?: EdgeSpec[];
    }) => void);
    workspace?: Workspace;
}

Hierarchy (view full)

Properties

concept?: string
dataTransfer?: IDataTransfer
eventTopicPrefix?: string
graph?: any
item?: WorkspaceItem<any>
items?: WorkspaceItem<any>[]
selectedItems?: WorkspaceItem<any>[]
then?: ((result?: {
    records?: Entity[];
    relationships?: EdgeSpec[];
}) => void)

Callback function to be executed with the result of the action.

Type declaration

    • (result?): void
    • Parameters

      • Optionalresult: {
            records?: Entity[];
            relationships?: EdgeSpec[];
        }

        The result object containing records and relationships.

      Returns void

workspace?: Workspace