Skip to main content
cngx-src documentation

withSidenavHoverDwell

Functionui/sidenavv0.1.0

projects/ui/sidenav/config/features.ts

Description#

Set the app-wide default mini expand-on-hover dwell - enterDelay (ms before the rail expands) and leaveDelay (ms before it collapses). Flows into the composed CngxHoverIntent via CNGX_HOVER_INTENT_DEFAULTS. Per-instance [enterDelay] / [leaveDelay] still win; the shipped literals (120 / 0) apply when neither is set. Partial payloads deep-merge, so pass only the key you want to change.

provideSidenavConfig(withSidenavHoverDwell({ enterDelay: 200, leaveDelay: 150 }));

Signature#

withSidenavHoverDwell(payload: NonNullable)

Parameters#

@parampayloadNonNullable

Returns#

CngxSidenavConfigFeature