Skip to main content
cngx-src documentation

provideCngxSelect

Functionforms/select/config

projects/forms/select/shared/provide-cngx-select.ts

Description#

App-wide entry point for the Select-family configuration surfaces. Routes mixed features from provideSelectConfig, provideActionSelectConfig, and provideReorderableSelectConfig to the correct underlying provider. The three individual providers stay exported.

bootstrapApplication(App, {
  providers: [
    provideCngxSelect(
      // CngxSelectConfig features
      withPanelWidth('trigger'),
      withVirtualization({ estimateSize: 36 }),
      withAriaLabels({ clearButton: 'Clear', chipRemove: 'Remove' }),

      // CngxActionSelectConfig features
      withFocusTrapBehavior('strict'),
      withCloseOnCreate(true),

      // CngxReorderableSelectConfig features
      withReorderKeyboardModifier('alt'),
      withReorderStripFreeze(true),
    ),
  ],
});

Signature#

provideCngxSelect(...features: undefined)

Parameters#

@paramfeatures

Returns#

EnvironmentProviders[]