Interface PanelProvider<P, R>

Adapter that teaches the registry how to find / construct one particular panel or tool. Every concrete panel in the built-in set registers one of these.

interface PanelProvider<P = void, R extends PanelLike = PanelLike> {
    create(ctx: PanelContext, params: P): R;
    find(ctx: PanelContext, params: P): R;
    onReveal(panel: R, ctx: PanelContext, params: P): void;
}

Type Parameters

  • P = void

    The params shape callers pass to open(id, params). Use void for panels with no per-call config.

  • R extends PanelLike = PanelLike

    The concrete panel/tool type returned from create.

Methods