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 }
}
}