@Regnalf, there are no immediate plans for an interface with Parameters at this time. As for formatting JSON (or any bit of code, really), it can certainly get a bit messy if things don’t follow some sort of standard. Everyone has different preferences for formatting, but the examples I’ve provided in the Parameters Docs article showcase how I tend to write those things out. I will do certain things like ensure that my value / label pairs for things like the "choose"
or "select"
controls line up vertically, in addition to my brackets like so:
[
{ "value" : "flex-start", "label" : "Left" },
{ "value" : "flex-end", "label" : "Right" },
{ "value" : "center", "label" : "Center" }
]
Little techniques like this really help make it easier to visually parse things.
As for assigning values, I mentioned this elsewhere in the forum but almost every control in Cornerstone can receive Parameters (the one notable exception being anything that accepts a boolean value, along with a few other contexts).
One keyboard shortcut I think you would find very helpful to add to your preferences in the Dev Toolkit is the following:
"inspector-breakout-mode" : "mod+b"
You can change the shortcut to whatever you would prefer, but what “Inspector Breakout Mode” does is when I hit CMD
+ b
on my Mac, any control that is mapped to do so in the Workspace Controls will change to a simple text input for easy input of custom values, including your Dynamic Content strings for Parameters. For example, the “Setup” control group of a Section normally looks like this:
But when I hit CMD
+ b
to toggle on “Inspector Breakout Mode,” I see the following:
Notice how everything is now immediately accessible as it is in the Dev Toolkit, just in the Workspace. This is a huge timesaver and I recommend leveraging it whenever possible. Note how controls like the base / interaction color picker are broken out into two separate lines now, in addition to the “Advanced” checkbox not being broken out, because it accepts a boolean value as mentioned previously.
This does not work for every control, but you will find that most of them are accessible in this way. Hopefully all of that helps!