Skip to main content
cngx-src documentation

CNGX_FILTER_BUILDER_BODY_HOST

Tokenv0.1.0

InjectionToken<Type<unknown>>

Referenced by#

Description#

Swap token that selects the component class mounted as the recursive body of <cngx-filter-builder>. The shell renders the resolved type via <ng-container *ngComponentOutlet="bodyType; inputs: { templates }"> so consumers can replace the entire recursive renderer without forking the shell.

Default: CngxFilterBuilderBody. Override at root or component scope:

providers: [
  { provide: CNGX_FILTER_BUILDER_BODY_HOST, useValue: MyCompactBuilderBody },
]

Replacements must accept the templates: CngxFilterBuilderTemplateRegistry input the default body declares and read the host context through CNGX_FILTER_BUILDER_HOST. Mirrors CNGX_SELECT_PANEL_VIEW_HOST in @cngx/forms/select.

Type#

InjectionToken<Type<unknown>>

Provided in#

'root'