mirror of
https://github.com/mathuo/dockview
synced 2025-02-02 22:45:48 +00:00
Merge pull request #570 from mathuo/569-expose-panel-component-id-via-the-panelapi
feat: expose api.(tab)component
This commit is contained in:
commit
ce3706d1b3
@ -31,6 +31,12 @@ export interface DockviewPanelApi
|
|||||||
// omit properties that do not make sense here
|
// omit properties that do not make sense here
|
||||||
'setVisible' | 'onDidConstraintsChange' | 'setConstraints'
|
'setVisible' | 'onDidConstraintsChange' | 'setConstraints'
|
||||||
> {
|
> {
|
||||||
|
/**
|
||||||
|
* The id of the tab component renderer
|
||||||
|
*
|
||||||
|
* Undefined if no custom tab renderer is provided
|
||||||
|
*/
|
||||||
|
readonly tabComponent: string | undefined;
|
||||||
readonly group: DockviewGroupPanel;
|
readonly group: DockviewGroupPanel;
|
||||||
readonly isGroupActive: boolean;
|
readonly isGroupActive: boolean;
|
||||||
readonly renderer: DockviewPanelRenderer;
|
readonly renderer: DockviewPanelRenderer;
|
||||||
|
@ -28,6 +28,10 @@ export interface PanelApi {
|
|||||||
setActive(): void;
|
setActive(): void;
|
||||||
setVisible(isVisible: boolean): void;
|
setVisible(isVisible: boolean): void;
|
||||||
updateParameters(parameters: Parameters): void;
|
updateParameters(parameters: Parameters): void;
|
||||||
|
/**
|
||||||
|
* The id of the component renderer
|
||||||
|
*/
|
||||||
|
readonly component: string;
|
||||||
/**
|
/**
|
||||||
* The id of the panel that would have been assigned when the panel was created
|
* The id of the panel that would have been assigned when the panel was created
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user