We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eab271 commit 3bc8251Copy full SHA for 3bc8251
src/wwwroot/js/genpage/params.js
@@ -438,6 +438,14 @@ function refreshParameterValues(callback = null) {
438
}
439
dropdown.innerHTML = html;
440
441
+ else if (param.type == "list" && param.values) {
442
+ let listElem = getRequiredElementById(`input_${param.id}`);
443
+ let listOpts = [...listElem.options].map(o => o.value);
444
+ let newVals = param.values.filter(v => !listOpts.includes(v));
445
+ for (let val of newVals) {
446
+ $(listElem).append(new Option(val, val, false, false));
447
+ }
448
449
450
if (callback) {
451
callback();
0 commit comments