Group properties use composite #5802
Replies: 1 comment 1 reply
-
Please provide a reproducible demo instead of screenshotting the code |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I'm trying to use the "composite" type to combine 4 attributes: top, left, bottom, right into one group. Here's what I've done:
Along with some custom steps in StylePropertyField (I simulated @artf's code on https://stackblitz.com/edit/grapesjs-react-custom-ui?file=src%2FApp.tsx and then customized it), the final result I achieved is:
But the issue is when using prop.upValue(value), it cannot be updated. It seems the problem lies in the fact that the inputs are children of the composite but don't have a property for the parent.
Do you have any suggestions for updating the value, or any other ideas? Thanks everyone.
Beta Was this translation helpful? Give feedback.
All reactions