MCPcopy Create free account
hub / github.com/cryptocj520/meteora2 / createSelectInput

Method createSelectInput

web/public/js/forms/DynamicForm.js:253–266  ·  view source on GitHub ↗

* 创建下拉选择框

(param)

Source from the content-addressed store, hash-verified

251 * 创建下拉选择框
252 */
253 createSelectInput(param) {
254 const select = document.createElement('select');
255
256 if (param.options) {
257 param.options.forEach(option => {
258 const optionElement = document.createElement('option');
259 optionElement.value = option.value;
260 optionElement.textContent = option.label;
261 select.appendChild(optionElement);
262 });
263 }
264
265 return select;
266 }
267
268 /**
269 * 创建文本域

Callers 1

createInputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected