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

    Interface ToggleAccordionSectionOptions<TSection>

    Options accepted by toggleAccordionSection.

    interface ToggleAccordionSectionOptions<
        TSection extends AccordionSection = AccordionSection,
    > {
        allowMultiple?: boolean;
        expandedIds?: readonly string[];
        sectionId: string;
        sections: readonly TSection[];
    }

    Type Parameters

    Index

    Properties

    allowMultiple?: boolean

    Whether more than one section may be expanded.

    false

    expandedIds?: readonly string[]

    Current expanded section identifiers.

    sectionId: string

    Section to toggle. Disabled or unknown sections leave state unchanged.

    sections: readonly TSection[]

    Ordered sections.