Interface ISectionEntry

A section entry returned by IMovableSectionSource.getSections.

Bundles the three pieces of information the move plugin needs to identify, display, and transfer a sidebar section.

interface ISectionEntry {
    id: string;
    titleNode: HTMLElement;
    widget: Widget;
}

Properties

Properties

id: string

Identifier for this section, stable across reloads and unique within its source panel.

The move plugin passes this value to IMovableSectionSource.removeSectionById and uses it to persist which sections have been moved and to restore them to the correct panel on reload.

titleNode: HTMLElement

The .jp-AccordionPanel-title DOM element rendered by Lumino as the visual header of this section.

The move plugin attaches the jp-movable-section CSS class to this node so that Lumino's context-menu selector fires when the user right-clicks the header.

widget: Widget

The content widget for this section.