Skip to main content
cngx-src documentation

CngxCommandPaletteConfig

Interface

projects/ui/command-palette/config/command-palette-config.ts

Import#

import { CngxCommandPaletteConfig } from '@cngx/ui/command-palette'

Description#

Resolved, localisable configuration for the command palette. English by default (sourced from the internal defaults); German or any other locale is consumer-supplied through provideCommandPaletteConfig and the with* features - never hard-coded (feedback_en_default_locale).

Index#

Instance Properties#

emptyLabel#string
Readonly

Empty-state copy (async source returned no results).

errorLabel#string
Readonly

Error-state copy.

footerLegend#unknown
Readonly

Keyboard-legend rows rendered in the footer.

listboxLabel#string
Readonly

Accessible label for the results listbox.

loadingLabel#string
Readonly

First-load skeleton copy.

openShortcut#string
Readonly

Combo string that opens the palette (parsed via parseKeyCombo, e.g. 'mod+k', 'mod+shift+p'). A per-instance [openShortcut] wins over this.

resultCount#function
Readonly

Builds the polite aria-live result-count message.

retryLabel#string
Readonly

Retry-button copy in the error state.

searchPlaceholder#string
Readonly

Placeholder + accessible name for the search input.

ReadonlyOptional

Global default slot templates (config = strings, slots = structure).