Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > RenderedConnection > connect_
Metode RenderedConnection.connect_()
Menghubungkan dua koneksi bersama-sama. Ini adalah koneksi pada blok atas. Merender ulang blok sesuai kebutuhan.
Tanda Tangan:
protected connect_(childConnection: Connection): void;
Parameter
Parameter |
Jenis |
Deskripsi |
childConnection |
Koneksi |
Koneksi pada blok inferior. |
Hasil:
void
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-12 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-12 UTC."],[[["The `connect_()` method joins two Blockly connections, specifically the one on the superior block to the one provided as input."],["This method is designated as `protected` within the `RenderedConnection` class."],["When called, `connect_()` triggers a rerendering of the involved blocks to visually reflect the connection."],["The method accepts a single argument: `childConnection`, which is an instance of the `Connection` class, representing the connection point on the subordinate block."],["`connect_()` does not return any explicit value (void)."]]],[]]