Skip to content

Commit

Permalink
feat: experimental work
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Dec 20, 2024
1 parent 25489bf commit a396104
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ export class TestPanel implements IDockviewPanel {
});
}

updateFromStateModel(state: GroupviewPanelState): void {
//
}

init(params: IGroupPanelInitParameters) {
this._params = params;
}
Expand Down
7 changes: 5 additions & 2 deletions packages/dockview-core/src/api/component.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,11 @@ export class DockviewApi implements CommonApi<SerializedDockview> {
/**
* Create a component from a serialized object.
*/
fromJSON(data: SerializedDockview): void {
this.component.fromJSON(data);
fromJSON(
data: SerializedDockview,
options?: { reuseExistingPanels: boolean }
): void {
this.component.fromJSON(data, options);
}

/**
Expand Down
Loading

0 comments on commit a396104

Please sign in to comment.