Skip to main content
cngx-src documentation

CngxCommandRow

Directivev0.1.0

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

Import#

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

Description#

Overrides the default command row. Project as content of <cngx-command-palette>:

<cngx-command-palette>
  <ng-template cngxCommandRow let-entry let-active="active">
    <my-icon [name]="entry.command.icon" />
    <span>{{ entry.command.label }}</span>
  </ng-template>
</cngx-command-palette>

Metadata#

Index#

Instance Properties#

templateRef#unknown
Readonly
inject<TemplateRef<CngxCommandRowContext>>(TemplateRef)

Methods#

ngTemplateContextGuard#CngxCommandRowContext
Static
ngTemplateContextGuard(_dir: CngxCommandRow, ctx: unknown)
@param_dirCngxCommandRow
@paramctxunknown