projects/ui-kit-lib/src/lib/v2/collapse/expansion-panel.ts
CdkAccordionItem
AfterContentInit
OnChanges
OnDestroy
| changeDetection | ChangeDetectionStrategy.OnPush |
| encapsulation | ViewEncapsulation.None |
| exportAs | expansionPanel |
| host | { |
| providers |
undefined
MDExpansionPanel
|
| selector | md-expansion-panel |
| imports |
CdkPortalOutlet
|
| templateUrl | expansion-panel.html |
| styleUrl | expansion-panel.scss |
Properties |
|
Methods |
Inputs |
Outputs |
Accessors |
constructor()
|
| hideToggle |
Type : boolean
|
|
Whether the toggle indicator should be hidden (local or inherited). |
| togglePosition |
Type : AccordionTogglePosition
|
|
Toggle position relative to header content (local or inherited). |
| afterCollapse |
Type : EventEmitter
|
|
Fires after the collapse transition completes. |
| afterExpand |
Type : EventEmitter
|
|
Fires after the expand transition completes. |
| _containsFocus |
_containsFocus()
|
|
Whether the current document focus is inside the panel body.
Returns :
boolean
|
| _getExpandedState |
_getExpandedState()
|
|
Map boolean expanded flag to the public state union.
Returns :
ExpansionPanelState
|
| _hasSpacing |
_hasSpacing()
|
|
Host CSS helper: spacing only in default display mode when expanded.
Returns :
boolean
|
| Protected _setupAnimationEvents |
_setupAnimationEvents()
|
|
Registers animation listeners:
Returns :
void
|
| close |
close()
|
|
Programmatic close.
Returns :
void
|
| open |
open()
|
|
Programmatic open.
Returns :
void
|
| toggle |
toggle()
|
|
Programmatic toggle (overrides base to flip expanded flag).
Returns :
void
|
| _body |
Type : ElementRef<HTMLElement>
|
Decorators :
@ViewChild('body')
|
|
Body host element (focus containment & transition target). |
| Protected _bodyWrapper |
Type : ElementRef<HTMLElement> | undefined
|
Decorators :
@ViewChild('bodyWrapper')
|
|
Wrapper element that handles the grid/height transition. |
| _headerId |
Type : string
|
Default value : inject(_IdGenerator).getId('expansion-panel-header-')
|
|
Header id for aria-controls/label association. |
| Readonly _inputChanges |
Type : unknown
|
Default value : new Subject<SimpleChanges>()
|
|
Emits whenever any @Input changes (for consumers to react). |
| _lazyContent |
Type : MDExpansionPanelContent
|
Decorators :
@ContentChild(MDExpansionPanelContent)
|
|
Lazily-projected body content ( |
| _portal |
Type : TemplatePortal
|
|
Portal wrapping the lazy content; created on first open. |
| accordion |
Type : unknown
|
Default value : inject<AccordionBase>(ACCORDION, {optional: true, skipSelf: true})!
|
|
Optional parent accordion context (if inside an accordion). |
| hideToggle | ||||||
gethideToggle()
|
||||||
|
Whether the toggle indicator should be hidden (local or inherited).
Returns :
boolean
|
||||||
sethideToggle(value: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| togglePosition | ||||||
gettogglePosition()
|
||||||
|
Toggle position relative to header content (local or inherited).
Returns :
AccordionTogglePosition
|
||||||
settogglePosition(value: AccordionTogglePosition)
|
||||||
|
Parameters :
Returns :
void
|