MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / disableAllButtons

Function disableAllButtons

examples/worker-rendering/main.ts:708–714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

706// ============================================================================
707
708function disableAllButtons(): void {
709 const buttons = ['btnGenerate', 'btnStream', 'btnClear'];
710 buttons.forEach(id => {
711 const btn = document.getElementById(id) as HTMLButtonElement;
712 if (btn) btn.disabled = true;
713 });
714}
715
716function enableAllButtons(): void {
717 const buttons = ['btnGenerate', 'btnStream', 'btnClear'];

Callers 1

handleGenerateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected