Style manage Custom Property type UI : Custom Composite UI for Padding Property #5798
Unanswered
mythily-palanisamy
asked this question in
Q&A
Replies: 1 comment
-
When you use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm currently using GrapesJS and have created a custom composite UI for the padding property, which includes individual controls for each side (top, right, bottom, left). However, I'm encountering an issue when trying to retrieve the padding value of an element that has a default padding value set (for example,
10px 25px
).In my custom
addType
method, I have anupdate
function that is supposed to get the current value of the padding property. However, it seems to only return the overall padding value, not the individual values for each side.Here's a simplified version of my code:
Could you please clarify how I can retrieve the
individual padding
values for each side in the update method? Any help would be greatly appreciated.Beta Was this translation helpful? Give feedback.
All reactions