You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application contains several components (overhead map, guidance panel) that are known apriori by the App object that renders the <DockviewReact>. I create it like so:
The catch is I don't know apriori to the <DockviewApi> object creation that this camera component needs to exist. I'd like to be able to just add it and then call addPanel.
I'm not sure if I'm just missing some understanding of what the components are in <DockviewReact> or if it's just not possible. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
In the case where you need dynamic components the approach I would recommend is to register a single component with dockview and have that component call into a dynamic collection of components that you maintain. You can pass that dynamic components name into the panel at the time of creation using the params property.
Anything in params is persisted with the dockview state.
My application contains several components (overhead map, guidance panel) that are known apriori by the App object that renders the
<DockviewReact>
. I create it like so:where
{components}
is a list of two:What I am interested in is having the ability to add new components arbitrarily. I want to be able to press a button and call something like:
The catch is I don't know apriori to the
<DockviewApi>
object creation that thiscamera
component needs to exist. I'd like to be able to just add it and then calladdPanel
.I'm not sure if I'm just missing some understanding of what the
components
are in<DockviewReact>
or if it's just not possible. Any help would be appreciated.The text was updated successfully, but these errors were encountered: