Hello, and thanks in advance for taking a look at this!
I've got an "hourly range" selector block that looks like this:
I'm concerned with the third dropdown, which has options like this:
[
[ "0", "0" ],
[ "1", "1" ],
...
[ "23", "23" ]
]
It should always default to "23" (the last option in the list) unless specifically given a value otherwise.
My question: Can a default dropdown value be accomplished via the block's JSON specification? I don't see anything to this effect in the docs, but it seems like an obvious omission. For example, TextField's "text" property is very similar in functionality. Shouldn't a Dropdown have a "selected" property or something like this?
I understand I can set it with an extension, and also whenever it is included in another block or toolbox, and in shadow declarations. However, this is exactly the point: that's a lot of work and boilerplate and code locations to keep in sync for something so straightforward and obvious. What am I missing? Any and all tips welcome.
Thanks again!