I'm using a lib that needs dot.nested.objects name
attributes. But dot.notation makes bad CSS ID selectors (I could \
escape the CSS, but I don't want to torture the poor PhotoShop choppers ;).
I tried to remove the dots but couldn't hack in the code :/ So I separated name
from id
:
"id": {
"label": "ID",
"type": "input",
"value": "filebutton"
},
"name": {
"label": "Name",
"type": "input",
"value": "name.val"
},
Works so far, but I hacked the JSON & not YAML, plus all the default values for name
is "name.val". I can PR after yours if you wish.
Improvements: on a fully default component template, editing ID, Name, or Label Text will auto-fill the other 2.