MCPcopy Create free account
hub / github.com/MathMan05/Fermi / generateHTML

Method generateHTML

src/webpage/settings.ts:406–420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 input.checked = this.value;
405 input.oninput = this.onChange.bind(this);
406 this.input = new WeakRef(input);
407 div.append(input);
408 return div;
409 }
410 private onChange() {
411 this.owner.changed();
412 const input = this.input.deref();
413 if (input) {
414 const value = input.checked as boolean;
415 this.value = value;
416 this.onchange(value);
417 }
418 }
419 setState(state: boolean) {
420 if (this.input) {
421 const checkbox = this.input.deref();
422 if (checkbox) {
423 checkbox.checked = state;

Callers

nothing calls this directly

Calls 2

addMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected