Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > blockRendering > PathObject > updateShapeForInputHighlight
Tambahkan atau hapus gaya visual yang menunjukkan bahwa jika blok tarik dilepas, blok ini akan dihubungkan ke input.
Tanda Tangan:
updateShapeForInputHighlight(_conn: Connection, _enable: boolean): void;
Parameter
Parameter |
Jenis |
Deskripsi |
_conn |
Koneksi |
Koneksi pada input yang akan ditandai. |
_enable |
boolean |
True jika gaya visual harus ditambahkan. |
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-08-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-08-21 UTC."],[[["The `updateShapeForInputHighlight` method visually indicates whether a dragged block, if dropped, will connect to a specific input."],["This method modifies the appearance of a block to highlight the connection point if a connection is possible, and removes the highlight if not."],["It takes the connection point and a boolean value indicating whether to add or remove the styling as parameters."],["This method belongs to the `PathObject` class within the `blockRendering` namespace of the Blockly library."]]],[]]