Skip to content

PanelSearchEntry beta ​

Interface of @v12-engine/editor

ts
export interface PanelSearchEntry extends Omit<SearchEntry, 'kind' | 'run'>

One thing of a panel's content the palette finds (EditorPanelDef.search): as a SearchEntry, with the panel's name for its kind and the panel's icon when it says neither. Picked, it opens the panel and tells it the entry's id (panel.onReveal), then does what it says itself (run), where it does

Members ​

kind ​

ts
kind?: string;

The kind the entry is listed under in the palette; the panel's name when left out

run ​

ts
run?: (editor: EditorClient) => void | Promise<void>;

Does something besides opening the panel when the entry is picked, given the editor