Allow a slider/integer setting to programmatically add new settings.
Problem to solve
Allow a slider/integer setting to programmatically add new settings.
Further details
Allow Widgets to specify a setting that can populate the page with more settings. For example, a slider/integer asking "How many icons?"
If the user enters say, 4, show four separate settings groups [possibly collapse-able] asking for Name/Icon?
Proposal
Possibly specified via bindings;
project.json
"properties": {
"Launch Apps": {
"App Count": {
"from": 0,
"stepSize": 1,
"to": 25,
"type": "slider",
"value": 1,
"bindings": {
"addProperty": {
"App ${binding.value}": {
"Icon": {
"formats": "*.png,*.svg",
"type": "file",
"value": "WindowsIcon.png"
},
"Opacity": {
"from": 0,
"stepSize": 0.1,
"to": 1,
"type": "slider",
"value": 1
}
}
}
}
}
}
}
Where ${binding.value}
could represent the value of the parent binding slider.
addProperty
would contain the property template to add.