-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I access the config of each tabNode together from any node?? #371
Comments
The factory function receives the tabnode object, so you can do node.getConfig() and pass that |
Hi nealus, Looks like I haven't fully expressed my intentions. My layout has 3 components IndexChart , MatchedPrice , MarketDepthPrice
Inside the IndexChart component, I can get the config using node.getConfig(). (Components and configs are subject to change) Best regards. |
you can use node.getModel().visitNodes() to visit all the nodes in the layout tree and hence gather their config. Also if you gave those nodes unique ids (rather than the auto generated ones) then you could access them using node.getModel().getNodeById() https://rawgit.com/caplin/FlexLayout/demos/demos/v0.7/typedoc/classes/Model.html#visitNodes |
My problem:
In each component, every time I perform an action I save my data in that node's config using
Question: After reloading the previously saved json, how can I retrieve all the config while I'm in a certain component?
My json:
The text was updated successfully, but these errors were encountered: