Skip to main content
cngx-src documentation

withSidenavResponsive

Functionui/sidenavv0.1.0

projects/ui/sidenav/config/features.ts

Description#

Set the app-wide default CSS media-query string for responsive mode switching. When the query matches, the sidenav resolves to 'side'; otherwise it falls back to its mode. Per-instance [responsive] still wins.

provideSidenavConfig(withSidenavResponsive('(min-width: 1024px)'));

Signature#

withSidenavResponsive(query: string)

Parameters#

@paramquerystring

Returns#

CngxSidenavConfigFeature