= {
- customHeader: (props) => {
+ customTab: (props: IDockviewPanelHeaderProps) => {
return (
{props.api.title}
@@ -100,7 +106,6 @@ const Component = () => {
event.api.addPanel({
id: 'panel2',
component: 'default',
- tabComponent: 'customHeader', // optional custom header
params: {
someProps: 'World',
},
@@ -108,7 +113,13 @@ const Component = () => {
});
};
- return ;
+ return (
+
+ );
};
```