33const PanelView = brackets .getModule (" view/PanelView" )
44```
55
6+ <a name =" _panelMap " ></a >
7+
8+ ## \_ panelMap : <code >Object.< ; string, Panel> ; </code >
9+ Maps panel ID to Panel instance
10+
11+ ** Kind** : global variable
12+ <a name =" _$container " ></a >
13+
14+ ## \_ $container : <code >jQueryObject</code >
15+ The single container wrapping all bottom panels
16+
17+ ** Kind** : global variable
18+ <a name =" _$tabBar " ></a >
19+
20+ ## \_ $tabBar : <code >jQueryObject</code >
21+ The tab bar inside the container
22+
23+ ** Kind** : global variable
24+ <a name =" _$tabsOverflow " ></a >
25+
26+ ## \_ $tabsOverflow : <code >jQueryObject</code >
27+ Scrollable area holding the tab elements
28+
29+ ** Kind** : global variable
30+ <a name =" _openIds " ></a >
31+
32+ ## \_ openIds : <code >Array.< ; string> ; </code >
33+ Ordered list of currently open (tabbed) panel IDs
34+
35+ ** Kind** : global variable
36+ <a name =" _activeId " ></a >
37+
38+ ## \_ activeId : <code >string</code > \| <code >null</code >
39+ The panel ID of the currently visible (active) tab
40+
41+ ** Kind** : global variable
42+ <a name =" _isMaximized " ></a >
43+
44+ ## \_ isMaximized : <code >boolean</code >
45+ Whether the bottom panel is currently maximized
46+
47+ ** Kind** : global variable
48+ <a name =" _preMaximizeHeight " ></a >
49+
50+ ## \_ preMaximizeHeight : <code >number</code > \| <code >null</code >
51+ The panel height before maximize, for restore
52+
53+ ** Kind** : global variable
54+ <a name =" _$editorHolder " ></a >
55+
56+ ## \_ $editorHolder : <code >jQueryObject</code >
57+ The editor holder element, passed from WorkspaceManager
58+
59+ ** Kind** : global variable
60+ <a name =" _recomputeLayout " ></a >
61+
62+ ## \_ recomputeLayout : <code >function</code >
63+ recomputeLayout callback from WorkspaceManager
64+
65+ ** Kind** : global variable
66+ <a name =" _defaultPanelId " ></a >
67+
68+ ## \_ defaultPanelId : <code >string</code > \| <code >null</code >
69+ The default/quick-access panel ID
70+
71+ ** Kind** : global variable
72+ <a name =" _$addBtn " ></a >
73+
74+ ## \_ $addBtn : <code >jQueryObject</code >
75+ The "+" button inside the tab overflow area
76+
77+ ** Kind** : global variable
78+ <a name =" _$overflowBtn " ></a >
79+
80+ ## \_ $overflowBtn : <code >jQueryObject</code >
81+ Overflow dropdown button
82+
83+ ** Kind** : global variable
84+ <a name =" _overflowDropdown " ></a >
85+
86+ ## \_ overflowDropdown : <code >DropdownButton.DropdownButton</code >
87+ ** Kind** : global variable
88+ <a name =" EVENT_PANEL_HIDDEN " ></a >
89+
90+ ## EVENT\_ PANEL\_ HIDDEN : <code >string</code >
91+ Event when panel is hidden
92+
93+ ** Kind** : global constant
94+ <a name =" EVENT_PANEL_SHOWN " ></a >
95+
96+ ## EVENT\_ PANEL\_ SHOWN : <code >string</code >
97+ Event when panel is shown
98+
99+ ** Kind** : global constant
100+ <a name =" PANEL_TYPE_BOTTOM_PANEL " ></a >
101+
102+ ## PANEL\_ TYPE\_ BOTTOM\_ PANEL : <code >string</code >
103+ type for bottom panel
104+
105+ ** Kind** : global constant
106+ <a name =" MAXIMIZE_THRESHOLD " ></a >
107+
108+ ## MAXIMIZE\_ THRESHOLD : <code >number</code >
109+ Pixel threshold for detecting near-maximize state during resize.
110+ If the editor holder height is within this many pixels of zero, the
111+ panel is treated as maximized. Keeps the maximize icon responsive
112+ during drag without being overly sensitive.
113+
114+ ** Kind** : global constant
115+ <a name =" MIN_PANEL_HEIGHT " ></a >
116+
117+ ## MIN\_ PANEL\_ HEIGHT : <code >number</code >
118+ Minimum panel height (matches Resizer minSize) used as a floor
119+ when computing a sensible restore height.
120+
121+ ** Kind** : global constant
122+ <a name =" PREF_BOTTOM_PANEL_MAXIMIZED " ></a >
123+
124+ ## PREF\_ BOTTOM\_ PANEL\_ MAXIMIZED
125+ Preference key for persisting the maximize state across reloads.
126+
127+ ** Kind** : global constant
6128<a name =" Panel " ></a >
7129
8- ## Panel
9- ** Kind** : global class
130+ ## Panel($panel, id, [ title] , [ options] )
131+ ** Kind** : global function
132+
133+ | Param | Type | Description |
134+ | --- | --- | --- |
135+ | $panel | <code >jQueryObject</code > | |
136+ | id | <code >string</code > | |
137+ | [ title] | <code >string</code > | |
138+ | [ options] | <code >Object</code > | |
139+ | [ options.iconClass] | <code >string</code > | FontAwesome class string (e.g. "fa-solid fa-terminal"). |
140+ | [ options.iconSvg] | <code >string</code > | Path to an SVG icon (e.g. "styles/images/icon.svg"). |
141+
10142
11- * [ Panel] ( #Panel )
12- * [ new Panel($panel, id, [ title] )] ( #new_Panel_new )
143+ * [ Panel($panel, id, [ title] , [ options] )] ( #Panel )
13144 * [ .$panel] ( #Panel+$panel ) : <code >jQueryObject</code >
14145 * [ .isVisible()] ( #Panel+isVisible ) ⇒ <code >boolean</code >
15146 * [ .registerCanBeShownHandler(canShowHandlerFn)] ( #Panel+registerCanBeShownHandler ) ⇒ <code >boolean</code >
@@ -24,18 +155,6 @@ const PanelView = brackets.getModule("view/PanelView")
24155 * [ .destroy()] ( #Panel+destroy )
25156 * [ .getPanelType()] ( #Panel+getPanelType ) ⇒ <code >string</code >
26157
27- <a name =" new_Panel_new " ></a >
28-
29- ### new Panel($panel, id, [ title] )
30- Represents a panel below the editor area (a child of ".content").
31-
32-
33- | Param | Type | Description |
34- | --- | --- | --- |
35- | $panel | <code >jQueryObject</code > | The entire panel, including any chrome, already in the DOM. |
36- | id | <code >string</code > | Unique panel identifier. |
37- | [ title] | <code >string</code > | Optional display title for the tab bar. |
38-
39158<a name =" Panel+$panel " ></a >
40159
41160### panel.$panel : <code >jQueryObject</code >
@@ -144,118 +263,6 @@ After calling this, the Panel instance should not be reused.
144263gets the Panel's type
145264
146265** Kind** : instance method of [ <code >Panel</code >] ( #Panel )
147- <a name =" _panelMap " ></a >
148-
149- ## \_ panelMap : <code >Object.< ; string, Panel> ; </code >
150- Maps panel ID to Panel instance
151-
152- ** Kind** : global variable
153- <a name =" _$container " ></a >
154-
155- ## \_ $container : <code >jQueryObject</code >
156- The single container wrapping all bottom panels
157-
158- ** Kind** : global variable
159- <a name =" _$tabBar " ></a >
160-
161- ## \_ $tabBar : <code >jQueryObject</code >
162- The tab bar inside the container
163-
164- ** Kind** : global variable
165- <a name =" _$tabsOverflow " ></a >
166-
167- ## \_ $tabsOverflow : <code >jQueryObject</code >
168- Scrollable area holding the tab elements
169-
170- ** Kind** : global variable
171- <a name =" _openIds " ></a >
172-
173- ## \_ openIds : <code >Array.< ; string> ; </code >
174- Ordered list of currently open (tabbed) panel IDs
175-
176- ** Kind** : global variable
177- <a name =" _activeId " ></a >
178-
179- ## \_ activeId : <code >string</code > \| <code >null</code >
180- The panel ID of the currently visible (active) tab
181-
182- ** Kind** : global variable
183- <a name =" _isMaximized " ></a >
184-
185- ## \_ isMaximized : <code >boolean</code >
186- Whether the bottom panel is currently maximized
187-
188- ** Kind** : global variable
189- <a name =" _preMaximizeHeight " ></a >
190-
191- ## \_ preMaximizeHeight : <code >number</code > \| <code >null</code >
192- The panel height before maximize, for restore
193-
194- ** Kind** : global variable
195- <a name =" _$editorHolder " ></a >
196-
197- ## \_ $editorHolder : <code >jQueryObject</code >
198- The editor holder element, passed from WorkspaceManager
199-
200- ** Kind** : global variable
201- <a name =" _recomputeLayout " ></a >
202-
203- ## \_ recomputeLayout : <code >function</code >
204- recomputeLayout callback from WorkspaceManager
205-
206- ** Kind** : global variable
207- <a name =" _defaultPanelId " ></a >
208-
209- ## \_ defaultPanelId : <code >string</code > \| <code >null</code >
210- The default/quick-access panel ID
211-
212- ** Kind** : global variable
213- <a name =" _$addBtn " ></a >
214-
215- ## \_ $addBtn : <code >jQueryObject</code >
216- The "+" button inside the tab overflow area
217-
218- ** Kind** : global variable
219- <a name =" EVENT_PANEL_HIDDEN " ></a >
220-
221- ## EVENT\_ PANEL\_ HIDDEN : <code >string</code >
222- Event when panel is hidden
223-
224- ** Kind** : global constant
225- <a name =" EVENT_PANEL_SHOWN " ></a >
226-
227- ## EVENT\_ PANEL\_ SHOWN : <code >string</code >
228- Event when panel is shown
229-
230- ** Kind** : global constant
231- <a name =" PANEL_TYPE_BOTTOM_PANEL " ></a >
232-
233- ## PANEL\_ TYPE\_ BOTTOM\_ PANEL : <code >string</code >
234- type for bottom panel
235-
236- ** Kind** : global constant
237- <a name =" MAXIMIZE_THRESHOLD " ></a >
238-
239- ## MAXIMIZE\_ THRESHOLD : <code >number</code >
240- Pixel threshold for detecting near-maximize state during resize.
241- If the editor holder height is within this many pixels of zero, the
242- panel is treated as maximized. Keeps the maximize icon responsive
243- during drag without being overly sensitive.
244-
245- ** Kind** : global constant
246- <a name =" MIN_PANEL_HEIGHT " ></a >
247-
248- ## MIN\_ PANEL\_ HEIGHT : <code >number</code >
249- Minimum panel height (matches Resizer minSize) used as a floor
250- when computing a sensible restore height.
251-
252- ** Kind** : global constant
253- <a name =" PREF_BOTTOM_PANEL_MAXIMIZED " ></a >
254-
255- ## PREF\_ BOTTOM\_ PANEL\_ MAXIMIZED
256- Preference key for persisting the maximize state across reloads.
257-
258- ** Kind** : global constant
259266<a name =" init " ></a >
260267
261268## init($container, $tabBar, $tabsOverflow, $editorHolder, recomputeLayoutFn, defaultPanelId)
0 commit comments