Interface IDockviewReactProps

interface IDockviewReactProps {
    components: Record<string, FunctionComponent<IDockviewPanelProps>>;
    defaultTabComponent?: FunctionComponent<IDockviewPanelHeaderProps>;
    getTabContextMenuItems?: ((params) => (ReactContextMenuItemConfig | BuiltInContextMenuItem)[]);
    leftHeaderActionsComponent?: FunctionComponent<IDockviewHeaderActionsProps>;
    onDidDrop?: ((event) => void);
    onReady: ((event) => void);
    onWillDrop?: ((event) => void);
    prefixHeaderActionsComponent?: FunctionComponent<IDockviewHeaderActionsProps>;
    rightHeaderActionsComponent?: FunctionComponent<IDockviewHeaderActionsProps>;
    tabComponents?: Record<string, FunctionComponent<IDockviewPanelHeaderProps>>;
    watermarkComponent?: FunctionComponent<IWatermarkPanelProps>;
}

Hierarchy (view full)

Properties

components: Record<string, FunctionComponent<IDockviewPanelProps>>
defaultTabComponent?: FunctionComponent<IDockviewPanelHeaderProps>
getTabContextMenuItems?: ((params) => (ReactContextMenuItemConfig | BuiltInContextMenuItem)[])

Return the items to display in the tab context menu on right-click.

Use built-in string shortcuts ('close', 'closeOthers', 'closeAll', 'separator') or provide a ContextMenuItemConfig object for custom items.

If omitted, no context menu is shown. Return an empty array to suppress the menu for specific cases.

leftHeaderActionsComponent?: FunctionComponent<IDockviewHeaderActionsProps>
onDidDrop?: ((event) => void)

Type declaration

onReady: ((event) => void)

Type declaration

onWillDrop?: ((event) => void)

Type declaration

prefixHeaderActionsComponent?: FunctionComponent<IDockviewHeaderActionsProps>
rightHeaderActionsComponent?: FunctionComponent<IDockviewHeaderActionsProps>
tabComponents?: Record<string, FunctionComponent<IDockviewPanelHeaderProps>>
watermarkComponent?: FunctionComponent<IWatermarkPanelProps>