Skip to main content
cngx-src documentation

CngxExpansionPanelLike

Interface

projects/ui/mat-accordion/material-bridge/set-sync.ts

Import#

import { CngxExpansionPanelLike } from '@cngx/ui/mat-accordion'

Description#

Minimal structural view of a MatExpansionPanel the set-sync needs: a read/write expanded boolean and an expandedChange stream. Kept host-agnostic (no @angular/material type in the signature) so the helper is unit-testable with plain fakes, mirroring the Material- agnostic shape of createMaterialBidirectionalSync in @cngx/common/data. MatExpansionPanel satisfies it structurally (expanded getter/setter from CdkAccordionItem, expandedChange is an EventEmitter<boolean> whose .subscribe matches).

Index#

Instance Properties#

expanded#boolean

Current expanded state; assigning it drives the Material panel open/closed.

expandedChange#literal type
Readonly

Emits the new expanded state on every Material-driven or programmatic change.