blessed-components - v1.20.0
    Preparing search index...

    Interface CalculateAccordionLayoutOptions<TSection>

    Options accepted by calculateAccordionLayout.

    interface CalculateAccordionLayoutOptions<
        TSection extends AccordionSection = AccordionSection,
    > {
        expandedIds?: readonly string[];
        gap?: number;
        sectionGap?: number;
        sections: readonly TSection[];
    }

    Type Parameters

    Index

    Properties

    expandedIds?: readonly string[]

    Current expanded section identifiers.

    gap?: number

    Empty rows between header and body while a section is expanded.

    0

    sectionGap?: number

    Empty rows between adjacent sections.

    0

    sections: readonly TSection[]

    Ordered sections.