MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / createSelect

Method createSelect

html/js/menu_ts.js:1043–1059  ·  view source on GitHub ↗
(text, values, set, dbKey)

Source from the content-addressed store, hash-verified

1041 return input;
1042 }
1043 createSelect(text, values, set, dbKey) {
1044 var select = document.createElement("SELECT");
1045 select.setAttribute("name", dbKey);
1046 for (let i = 0; i < text.length; i++) {
1047 var option = document.createElement("OPTION");
1048 option.setAttribute("value", values[i]);
1049 option.innerText = text[i];
1050 select.appendChild(option);
1051 }
1052 if (set != "") {
1053 select.value = set;
1054 }
1055 if (set == undefined) {
1056 select.value = values[0];
1057 }
1058 return select;
1059 }
1060 selectOption(select, value) {
1061 //select.selectedOptions = value
1062 var s = select;

Callers 3

openPopUpFunction · 0.95
createWizardMethod · 0.95
createSettingsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected