Parameter settings for slider control to output deg units?

How can I create a parameter slider control that outputs a unit of ‘deg’? Since Cornerstone doesn’t offer native gradient support, I want to create a component that uses DC strings in place of the CSS values for a gradient upper background layer. One of them I want to control is the ‘rotation’ of the gradient which is measured in “deg” units. How Can I create a parameter slider control that can output a value of “180deg” for example. The 180 would change depending on the slider control setting. I’ve tried messing around with this, but it doesn’t work:

“bgGradientRotation” : {
“label” : “rotation”,
“slider” : true,
“type” : “dimension”,
“initial” : “180”,
“units” : [ “deg” ],
“ranges” : {
“deg” : { “min” : 0, “max” : 360, “step” : 1 }
}
}

Hi @threeoten,

Regretfully, the parameter support predefined units only. But, I will surely check with our development team and if possible will add this as a feature request, so they can consider this in the near future.

Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.