Member Junction
    Preparing search index...

    mj-accordion-panel — Collapsible panel.

    Supports two title modes:

    • Simple string: [Title]="'Details'" — plain text title
    • Rich template: <ng-template mjAccordionTitle> — HTML with icons, badges, etc.
    <!-- Simple string title -->
    <mj-accordion-panel Title="Details" [Expanded]="true">
    <p>Panel content here</p>
    </mj-accordion-panel>

    <!-- Rich HTML title -->
    <mj-accordion-panel [Expanded]="true">
    <ng-template mjAccordionTitle>
    <i class="fa-solid fa-code"></i> Template Editor
    </ng-template>
    <p>Panel content here</p>
    </mj-accordion-panel>

    Implements

    • OnInit
    • OnDestroy
    Index

    Constructors

    Properties

    ActionsTemplate: MJAccordionActionsDirective | null = null
    Bare: boolean = false

    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.

    BodyId: string = ...
    BodyTemplate: MJAccordionBodyDirective | null = null
    Disabled: boolean = false
    ExpandedChange: EventEmitter<boolean> = ...
    Fill: boolean = false

    Fill 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: boolean = false

    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.

    FlushBody: boolean = false

    Remove the body's default padding, for bodies that manage their own spacing (code editors, full-bleed grids, custom forms).

    HeaderId: string = ...
    HeadingLevel: 1 | 2 | 3 | 5 | 6 | 4 | null = null

    Heading 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.

    hostClass: true
    SectionCount: number | null = null

    Count shown on the section picker row.

    SectionIcon: string | null = null

    Font Awesome class string for the section picker row.

    SectionKey: string | null = null

    Stable key for this panel in an mj-accordion-sections; falls back to its position.

    SectionTitle: string | null = null

    The name the section picker shows; falls back to Title, then the rendered title text.

    Size: "sm" | "md" = 'md'

    Density. md (default) is the standard size; sm tightens header padding and font for dense contexts (sidebars, flyouts, nested panels).

    Title: string = ''
    TitleIconMuted: boolean = false

    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.

    TitleTemplate: MJAccordionTitleDirective | null = null
    Variant: "primary" | "secondary" | "default" = 'default'

    Emphasis variant for visual hierarchy:

    • primary — bold, solid brand-colored header (use to make a panel stand out)
    • secondary — subtle brand tint
    • default — standard neutral header All brand-token-driven, so dark-mode-safe and themeable.

    Accessors

    Methods

    • 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.

      Returns void

    • 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.

      Parameters

      • enabled: boolean
      • active: boolean

      Returns void