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

Method generateHTML

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

Source from the content-addressed store, hash-verified

1640 const colorInput = new ColorInput(label, onSubmit, this, {initColor});
1641 this.options.push(colorInput);
1642 this.generate(colorInput);
1643 return colorInput;
1644 }
1645 addMDInput(label: string, onSubmit: (str: string) => void, {initText = "", charLimit = -1} = {}) {
1646 const mdInput = new MDInput(label, onSubmit, this, {initText, charLimit});
1647 this.options.push(mdInput);
1648 this.generate(mdInput);
1649 return mdInput;
1650 }
1651 addHTMLArea(html: (() => HTMLElement) | HTMLElement, submit: () => void = () => {}) {
1652 const htmlarea = new HtmlArea(html, submit);
1653 this.options.push(htmlarea);
1654 this.generate(htmlarea);
1655 return htmlarea;
1656 }
1657 addButtonInput(label: string, textContent: string, onSubmit: () => void) {
1658 const button = new ButtonInput(label, textContent, onSubmit, this);
1659 this.options.push(button);
1660 this.generate(button);
1661 return button;
1662 }
1663 addSubButtonInput(

Callers

nothing calls this directly

Calls 2

generateContainerMethod · 0.95
addMethod · 0.80

Tested by

no test coverage detected