g3-toolkit API Reference
    Preparing search index...

    Interface InspectorSectionState

    interface InspectorSectionState {
        clear: () => void;
        collapsed: string[];
        setCollapsed: (ids: readonly string[]) => void;
        setSection: (id: string, isCollapsed: boolean) => void;
        toggle: (id: string) => void;
    }
    Index

    Properties

    clear: () => void

    Clear all collapse state (everything expanded).

    collapsed: string[]

    Collapsed section ids.

    setCollapsed: (ids: readonly string[]) => void

    Replace the entire collapsed set (host-driven, e.g. restore).

    setSection: (id: string, isCollapsed: boolean) => void

    Force a section collapsed (true) or expanded (false).

    toggle: (id: string) => void

    Toggle one section's collapsed state (idempotent per call).