Skip to content

charton API


charton API / @chart-on/ui / index / CommandPalettePart

Type Alias: CommandPalettePart ​

CommandPalettePart = (chart, host, onOpenChange) => CommandPalette

Defined in: ui/src/command-palette.ts:286

The shell's commandPalette part, made by commandPalette(options). The shell calls it with its chart, its element and a callback for when the palette opens or closes.

Parameters ​

chart ​

Chart

host ​

HTMLElement

onOpenChange ​

(open) => void

Returns ​

CommandPalette