Bare chrome — drop the panel's border, header background, body fill and
row-wide hover fill, so the panel sits cleanly inside a host that already
provides chrome (e.g. an expandable card) or directly on a page as a section.
The toggle keeps its focus ring and, on a device that can hover, a hover cue:
pointing at the title or the chevron gives both the brand color. A Variant
keeps its own colors.
ReadonlyBodyFill mode — for "rail section that owns the leftover height" cases (e.g. an
entity tree or grid that should consume all remaining vertical space and
scroll internally), rather than the default "reveal stacked content"
disclosure. When set AND expanded, the panel becomes a flex column that
fills its flex parent and its body becomes a flex:1; min-height:0 region —
the projected content is expected to provide its own scroll child. While
collapsed, the panel behaves exactly like a normal panel (header only,
natural height) and does NOT claim the leftover space.
Requires the panel's parent to be a flex column with min-height:0.
Note: the open/close height animation is skipped in fill mode (the body
fills rather than animating to content height).
Flat — render as a plain headed block: the title is a heading, the body is always open,
and there is no toggle, border or body padding. Panels nested inside a flat panel, or
inside the active section of an mj-accordion-sections, render this way automatically.
Remove the body's default padding, for bodies that manage their own spacing (code editors, full-bleed grids, custom forms).
ReadonlyHeaderHeading level (1–6) for the title. When set, a role="heading" element with this
aria-level wraps the toggle button, so the section title takes part in the page's
heading outline. When null, there is no wrapper and the toggle is a direct child of
the header row.
ReadonlyhostCount shown on the section picker row.
Font Awesome class string for the section picker row.
Stable key for this panel in an mj-accordion-sections; falls back to its position.
The name the section picker shows; falls back to Title, then the rendered title text.
Density. md (default) is the standard size; sm tightens header padding and
font for dense contexts (sidebars, flyouts, nested panels).
Render icons projected into the title slot in the muted color instead of the header's primary text color. Lets consumers get the common "quiet icon" look without writing CSS. Status/brand-colored icons can still be colored inline.
Emphasis variant for visual hierarchy:
primary — bold, solid brand-colored header (use to make a panel stand out)secondary — subtle brand tintdefault — standard neutral header
All brand-token-driven, so dark-mode-safe and themeable.Use ActionsTemplate.
Use BodyTemplate.
Host claims flex:1 of its parent ONLY while a Fill panel is expanded — so a collapsed Fill panel sits at natural (header) height like any other.
section: the active top level of an mj-accordion-sections; block: a flat nested panel.
ProtectedhasOpen because it is flat and on screen. A hidden section (or a block inside one) is not, so its lazy body is not built until that section is picked; once picked it stays built (it was expanded then), so switching away and back keeps its state.
Hidden because another section of an mj-accordion-sections is active.
On screen in a flat presentation: an active section, or a block whose parent is on screen.
Use TitleTemplate.
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
The name the section picker shows for this panel.
Called by mj-accordion-sections. Enabled, this panel becomes a section: shown and flat
when active, hidden otherwise. Opening it emits ExpandedChange(true) once, like a click,
so a body that loads on first expand still loads.
mj-accordion-panel — Collapsible panel.
Supports two title modes:
[Title]="'Details'"— plain text title<ng-template mjAccordionTitle>— HTML with icons, badges, etc.Example