Conditions for control presets? #180
Jacob-Levitan
started this conversation in
Coding (HTML, PHP, CSS, JS)
Replies: 0 comments
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.
-
Question
I am trying to add multiple style controls that are shown/hidden based on the condition of a button-list created via
addOptionControl. This is working great for regular style controls using theaddStyleControlfunction. However I can't figure out how to add a condition to a preset style control such as padding and margin, which are created using theaddPresetfunction.Does the
addPresetfunction support conditions? If yes, what is the proper syntax for this?Code examples
This is the button list:
Here is a regular style control which is working correctly:
And here is a preset control where it is not working as I can't figure out where to add the condition:
Beta Was this translation helpful? Give feedback.
All reactions