Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > inputs > Input > setShadowDom
Mengubah blok bayangan koneksi.
Tanda Tangan:
setShadowDom(shadow: Element | null): Input;
Parameter
Parameter |
Jenis |
Deskripsi |
bayangan |
Elemen | null (kosong) |
Representasi DOM dari blok atau null. |
Hasil:
Input
Input yang diubah (untuk memungkinkan perantaian).
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-22 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-22 UTC."],[[["The `setShadowDom()` method updates an input's shadow block using a provided DOM element or null."],["It accepts a single argument: `shadow`, which represents the DOM structure of the shadow block."],["Upon execution, the method returns the modified input, enabling method chaining for further operations."]]],["The `setShadowDom()` method modifies an input's connection by changing its shadow block. It accepts a single parameter, `shadow`, which is the DOM representation of a block or `null`. This method returns the modified `Input` object, enabling method chaining. The primary action is to set or remove the shadow block associated with the input connection, using the provided DOM element.\n"]]