How to get the metadata defined in the component from a node? #576
Unanswered
Traveller23
asked this question in
Q&A
Replies: 1 comment
-
I've submitted a pull request to accomplish this: #578 After adding this feature, whenever we get the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, I wrote
propCfg
in the Text component, which defines the properties that will be displayed in the settings panel:Then, in the settings panel, I get the currently selected component and get its
propCfg
from its node object, then let the settings panel render the UI based on thispropCfg
.But that's just the result I want, using
state.nodes[currentNodeId].propCfg
doesn't get thepropCfg
I wrote earlier.So, within the settings panel, how do I get my previously defined
propCfg
?Beta Was this translation helpful? Give feedback.
All reactions