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 9, 2024
1 parent 25489bf commit de84bca
Show file tree
Hide file tree
Showing 6 changed files with 192 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?: { keepExistingPanels: boolean }
): void {
this.component.fromJSON(data, options);
}

/**
Expand Down
Loading

0 comments on commit de84bca

Please sign in to comment.