MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / handleOnlyForMultipleChange

Function handleOnlyForMultipleChange

src/nodeGraph/nodes/renderers.tsx:614–623  ·  view source on GitHub ↗
(event: React.ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

612 };
613
614 const handleOnlyForMultipleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
615 const newValue = event.target.checked;
616 setOnlyForMultiple(newValue);
617
618 // Update the node data through the editor action bridge
619 const updateEvent = {
620 detail: { nodeId: id, onlyForMultiple: newValue },
621 };
622 dispatchNodeDataUpdate(data, updateEvent.detail);
623 };
624
625 return (
626 <div className="bg-gray-700 border-2 border-fuchsia-500 rounded-lg p-4 min-w-[200px]">

Callers

nothing calls this directly

Calls 1

dispatchNodeDataUpdateFunction · 0.90

Tested by

no test coverage detected