Skip to main content
cngx-src documentation

CngxTagSlotContext

Interface

projects/common/display/tag/slots/tag-slot.context.ts

Referenced by#

Import#

import { CngxTagSlotContext } from '@cngx/common/display'

Description#

Shared context exposed by the three CngxTag slots (*cngxTagLabel, *cngxTagPrefix, *cngxTagSuffix) - the full reactive Tag state bundled so consumer templates can switch on variant / colour / size / truncate without injecting the directive.

$implicit is void because the slots have no positional payload - consumers reach for the named fields below. Pattern mirrors CngxSelectInputSlotContext in @cngx/forms/select/shared.

The per-slot names below alias this interface. A slot that grows its own field forks its alias back into an interface extending this one - sibling consumers stay source-compatible either way.

Index#

Instance Properties#

$implicit#void
Readonly
Readonly
Readonly
truncate#boolean
Readonly
Readonly