blockly > Connection > connect_
Connection.connect_() method
Connect two connections together. This is the connection on the superior block.
Signature:
protected connect_(childConnection: Connection): void;
Parameters
Parameter |
Type |
Description |
childConnection |
Connection |
Connection on inferior block. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `connect_()` method joins two Blockly connections, specifically the connection on the superior block to the one on the inferior block."],["This method accepts one argument: `childConnection`, representing the connection on the inferior block."],["Calling `connect_()` establishes a link between the two blocks, enabling them to function together within a Blockly workspace."]]],[]]