MCPcopy Create free account
hub / github.com/roboflow/trackers / onInputChange

Function onInputChange

docs/javascripts/command_builder.js:190–199  ·  view source on GitHub ↗
({ key, value, isCommit, builder: instance })

Source from the content-addressed store, hash-verified

188 },
189 },
190 onInputChange({ key, value, isCommit, builder: instance }) {
191 if (key !== "output") return;
192
193 const hasOutput = value.trim() !== "";
194 instance.setElementVisibleById(instance.ids.overwrite, hasOutput);
195
196 if (isCommit && !hasOutput) {
197 instance.setCheckboxField("overwrite", false, { refresh: false });
198 }
199 },
200 renderBody(code, api) {
201 const {
202 ids,

Callers

nothing calls this directly

Calls 2

setElementVisibleByIdMethod · 0.80
setCheckboxFieldMethod · 0.80

Tested by

no test coverage detected