We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd4f009 commit b65d221Copy full SHA for b65d221
src/workbench/editor/group.tsx
@@ -87,8 +87,14 @@ function EditorGroup(props: IEditorGroupProps & IEditorController) {
87
<EditorBreadcrumb breadcrumbs={tab.breadcrumb} />
88
<div className={groupContainerClassName}>
89
{
90
- // Default we use monaco editor, but also you can customize by renderPanel() function
91
- tab.renderPanel || (
+ // Default we use monaco editor, but also you can customize by renderPanel() function or a react element
+ tab.renderPanel ? (
92
+ typeof tab.renderPanel === 'function' ? (
93
+ tab.renderPanel(tab.data)
94
+ ) : (
95
+ tab.renderPanel
96
+ )
97
98
<MonacoEditor
99
options={{
100
value: tab.data?.value,
0 commit comments