rc-dock
    Preparing search index...

    Class DockLayout

    Docking layout component. Use a ref for tab moves, updates and layout persistence.

    Hierarchy

    • DockPortalManager
      • DockLayout

    Implements

    Index

    Constructors

    Methods

    • Focus the active tab in a nearby panel.

      Parameters

      • OptionalfromElement: HTMLElement

        Element in the starting panel; omit with no direction to focus the active tab.

      • Optionaldirection: string

        ArrowLeft, ArrowRight, ArrowUp or ArrowDown; omit to focus fromElement.

      Returns void

    • Replace the runtime layout without calling onLayoutChange. Use loadLayout for saved layouts.

      Parameters

      • layout: LayoutData

        Resolved runtime layout with parent links and tab definitions.

      Returns void

    • Replace an open tab's definition, optionally activating it.

      Parameters

      • id: string

        Existing tab id.

      • newTab: TabBase

        Full definition or {id} reference; null leaves the definition unchanged.

      • makeActive: boolean = true

        Select the updated tab. Defaults to true.

      Returns boolean

      False if the tab is missing or its replacement cannot be resolved.