How to link margin parameters to margins of an element?

@kory

I have created a margins group parameters for a component ‘button’ (the button is made from a grid) but I can’t figure out how to add those parameters as dynamic data into the margins of the ‘button’ grid

I have tried adding {{dc:p:margins.top}} into the top margin value field but that doesn’t seem to do anything

@scotbaston, you appear to have the {{dc:p:__}} strings present in your Component Params itself in the first screenshot, no? Those should be set to some type of initial value like 0px, which will then be pulled through when you use {{dc:p:margins.top}}, {{dc:p:margins.bottom}}, et cetera in the actual Margin control on the Element.

Let me know if that helps!

Thank you. Will try that tomorrow

Sounds good! Don’t hesitate to let me know if you have any additional questions.

all working now, the initial value was set to 0, not 0px

also, I have found the inputing of dynamic data into the margin fields sometimes gets ‘lost’ ie the values go blank?

@scotbaston, glad you got that sorted!

As for your issue there, I haven’t seen that happen. Could you potentially walk me through the steps you’re taking that are making that occur so I could attempt to recreate it on my end?

Thank you!

If I can figure out the steps to replicate the vanishing fields, I’ll let you know…

I suspect it might be a confusion of cornerstone ‘internal’ tabs but will keep an eye out

Thank you, @scotbaston! I’ll be keeping an eye on this if you can deduce the steps and post them here.