UNPKG

1.25 kBTypeScriptView Raw
1import { VirtualElement } from '@lumino/virtualdom';
2import { CommandPalette } from '@lumino/widgets';
3export declare namespace CommandPaletteSvg {
4 /**
5 * a modified implementation of the CommandPalette Renderer
6 */
7 class Renderer extends CommandPalette.Renderer {
8 /**
9 * Render the virtual element for a command palette header.
10 *
11 * @param data - The data to use for rendering the header.
12 *
13 * @returns A virtual element representing the header.
14 */
15 renderHeader(data: CommandPalette.IHeaderRenderData): VirtualElement;
16 /**
17 * Render the icon for a command palette item.
18 *
19 * @param data - The data to use for rendering the icon.
20 *
21 * @returns A virtual element representing the icon.
22 */
23 renderItemIcon(data: CommandPalette.IItemRenderData): VirtualElement;
24 /**
25 * Create the class name for the command item icon.
26 *
27 * @param data - The data to use for the class name.
28 *
29 * @returns The full class name for the item icon.
30 */
31 createIconClass(data: CommandPalette.IItemRenderData): string;
32 }
33 const defaultRenderer: Renderer;
34}