diff --git a/packages/docs/docs/core/panels/add.mdx b/packages/docs/docs/core/panels/add.mdx index ab1142b47..055457fc0 100644 --- a/packages/docs/docs/core/panels/add.mdx +++ b/packages/docs/docs/core/panels/add.mdx @@ -21,9 +21,12 @@ To open a panel requires a unique `id` and the name of the `component` to render const panel: IDockviewPanel = api.addPanel({ id: 'my_unique_panel_id', component: 'my_component', + // optionally set `inactive: true` to prevent the added panel becoming active automatically + inactive: true }); ``` + > See [Overview](/docs/core/overview) to register components. ## Providing a Panel Title