MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / removeInput

Method removeInput

packages/blockly/core/block_svg.ts:1482–1486  ·  view source on GitHub ↗

* Remove an input from this block. * * @param name The name of the input. * @param opt_quiet True to prevent error if input is not present. * @returns True if operation succeeds, false if input is not present and * opt_quiet is true * @throws {Error} if the input is not present

(name: string, opt_quiet?: boolean)

Source from the content-addressed store, hash-verified

1480 * @throws {Error} if the input is not present and opt_quiet is not true.
1481 */
1482 override removeInput(name: string, opt_quiet?: boolean): boolean {
1483 const removed = super.removeInput(name, opt_quiet);
1484 this.queueRender();
1485 return removed;
1486 }
1487
1488 /**
1489 * Move a numbered input to a different location on this block.

Callers 1

updateCollapsedMethod · 0.95

Calls 1

queueRenderMethod · 0.95

Tested by

no test coverage detected