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

Method createCheckboxInput

web/public/js/forms/DynamicForm.js:232–248  ·  view source on GitHub ↗

* 创建复选框

(param)

Source from the content-addressed store, hash-verified

230 * 创建复选框
231 */
232 createCheckboxInput(param) {
233 const wrapper = document.createElement('div');
234 wrapper.className = 'checkbox-wrapper';
235
236 const input = document.createElement('input');
237 input.type = 'checkbox';
238 input.id = `checkbox_${param.name}`;
239
240 const label = document.createElement('label');
241 label.htmlFor = input.id;
242 label.textContent = param.checkboxLabel || '启用';
243
244 wrapper.appendChild(input);
245 wrapper.appendChild(label);
246
247 return wrapper;
248 }
249
250 /**
251 * 创建下拉选择框

Callers 1

createInputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected