From d0eda81a9e3ff2547c539495465c341684e6013d Mon Sep 17 00:00:00 2001 From: mathuo <6710312+mathuo@users.noreply.github.com> Date: Sun, 28 Apr 2024 14:34:21 +0100 Subject: [PATCH] chore: docs --- packages/docs/docs/core/panels/add.mdx | 3 +++ 1 file changed, 3 insertions(+) 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