You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Bottom Panel** appears on the bottom of the screen. For Example :- *Problems*feature uses the `Bottom Panel`.
12
+
**Bottom Panel** appears on the bottom of the screen as a tab. Multiple bottom panels share a tabbed interface where each panel gets its own tab with an icon and title. For Example :- *Git*, *Terminal*, *Problems*panel and many more use the `Bottom Panel`.
iconSvg: "path/to/icon.svg" // SVG icon for the tab
169
+
}
166
170
);
167
171
```
172
+
173
+
-**`title`**: The text shown on the panel's tab. If not provided, Phoenix Code uses the text from a `.toolbar .title` element inside your panel, or derives it from the panel ID.
174
+
- **`iconSvg`**: Path to an SVG file used as the tab icon. The icon automatically adapts to light and dark themes. If not provided, a default icon is used.
175
+
176
+
> The `minSize` parameter (third argument) is deprecated and no longer used. Pass `undefined` for this parameter.
177
+
168
178
> For a detailed description, refer to [this link](https://docs.phcode.dev/api/API-Reference/view/WorkspaceManager#createBottomPanel).
169
179
170
180
Full Code Example for Bottom Panel:
@@ -189,11 +199,13 @@ Full Code Example for Bottom Panel:
189
199
.attr("id", "my-extension-panel")
190
200
.html("<h3>My Bottom Panel</h3><p>Hello from the panel!</p>");
1. Always use unique, package-style IDs (e.g., "yourextension.panel-name") to avoid conflicts with other extensions.
252
287
253
288
2. Save panel state (e.g., visibility, size) in preferences if needed, to restore state when the extension is reloaded.
254
289
255
-
Example CSSfor Bottom Panel:
256
-
257
-
```css
258
-
.bottom-panel {
259
-
background-color: #f8f9fa;
260
-
border-top: 1px solid #ddd;
261
-
}
262
-
263
-
.bottom-panel .toolbar {
264
-
padding: 4px 8px;
265
-
display: flex;
266
-
justify-content: space-between;
267
-
align-items: center;
268
-
background-color: #e9ecef;
269
-
border-bottom: 1px solid #ddd;
270
-
}
271
-
272
-
.bottom-panel .panel-content {
273
-
padding: 8px;
274
-
overflow-y: auto;
275
-
}
276
-
```
277
-
278
290
> For more information about the WorkSpace Manager API, refer to the [Phoenix Code API documentation](https://docs.phcode.dev/api/API-Reference/view/WorkspaceManager).
0 commit comments