OmniDataEditor API
    Preparing search index...

    Interface EditorRuntime<T>

    Coordinate sessions, integrations, external notifications and asynchronous disposal.

    interface EditorRuntime<T> {
        attach(host: HostConnection<T>): Disposer;
        create(options?: CreateSessionOptions<T>): EditSession<T>;
        destroy(): Promise<void>;
        edit(entity: T): EditSession<T>;
        editMany(entities: readonly T[]): EditSession<T>;
        notifyExternalEntity(entity: T, meta?: ExternalChangeMeta): void;
        notifyExternalRemoval(
            entityKey: EntityKey,
            meta?: ExternalChangeMeta,
        ): void;
        on<K extends keyof EditorEventMap<T>>(
            event: K,
            listener: (payload: EditorEventMap<T>[K]) => void,
        ): Unsubscribe;
        remove(entity: T): Promise<RemoveOutcome>;
        use(presentation: Presentation<T>): Disposer;
    }

    Type Parameters

    • T
    Index
    • Returns Promise<void>