Skip to content

charton API


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

Function: createCommandPalette() ​

createCommandPalette(chart, host, options?): CommandPalette

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

A searchable list of everything the chart can do: the commands on chart.actions with their shortcuts and on/off state, plus entries from app sources. Opened by the command-palette action (Mod+K by default), in host (the shell element) so it picks up the theme.

Parameters ​

chart ​

Chart

host ​

HTMLElement

options? ​

CommandPaletteOptions = {}

Returns ​

CommandPalette