In Panels Layout, a workspace is rendered using a Workspace Configuration. A Workspace Configuration is created as follows
FlexPane is the basic building block of Panels Layout. Following is the configuration of a Pane
{
id: "",
type: "pane",
placement: "",
size: "",
props: {},
settings: {},
children: []
}
Pane Group is a FlexPane with type set to "group". It will have more Panes as children.
{
id: "",
type: "group",
placement: "",
size: "",
props: {},
settings: {},
children: [
{
id: "",
type: "pane",
placement: "",
size: "",
props: {},
settings: {},
children: []
},
{
id: "",
type: "pane",
placement: "",
size: "",
props: {},
settings: {},
children: []
}
]
}
A Workspace is a nested collection of Pane Groups and Panes. root is the Pane that wraps the whole Workspace.
{
root: {
id:"2k31te19rqf",
type: "group",
placement: "root",
size: 1,
props: {
isRoot: true,
isHGroup: true,
},
settings: {},
children: [
{
type: "pane",
id: "8bfjcf98sd9",
placement: "",
size: 1,
settings: {
view: {
name: "",
},
},
},
],
},
}
WorkspaceConfig ⠀ ⠀ ⠀
Generated using TypeDoc