Skip to main content

Home > blockly > BlockSvg > removeInput

BlockSvg.removeInput() method

Remove an input from this block.

Signature:

removeInput(name: string, opt_quiet?: boolean): boolean;

Parameters

ParameterTypeDescription
namestringThe name of the input.
opt_quietboolean(Optional) True to prevent error if input is not present.

Returns:

boolean

True if operation succeeds, false if input is not present and opt_quiet is true

Exceptions

{Error} if the input is not present and opt_quiet is not true.