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

Method addButtonInput

src/webpage/settings.ts:1549–1554  ·  view source on GitHub ↗
(label: string, textContent: string, onSubmit: () => void)

Source from the content-addressed store, hash-verified

1547 addSelect(
1548 label: string,
1549 onSubmit: (str: number) => void,
1550 selections: readonly string[],
1551 {defaultIndex = 0, radio = false} = {},
1552 ) {
1553 const select = new SelectInput(label, onSubmit, selections, this, {
1554 defaultIndex,
1555 radio,
1556 });
1557 this.options.push(select);

Callers 1

constructorMethod · 0.95

Calls 1

generateMethod · 0.95

Tested by

no test coverage detected