blockly > BlockSvg > setMutator
BlockSvg.setMutator() yöntemi
Bu engelleme için bir değiştirici iletişim kutusu ver.
İmza:
setMutator(mutator: MutatorIcon | null): void;
Parametreler
Parametre |
Tür |
Açıklama |
mutatör |
MutatorIcon | boş |
Bir değiştirici iletişim kutusu örneği veya kaldırmak için null. |
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-11 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-11 UTC."],[[["The `BlockSvg.setMutator()` method assigns a mutator dialog to a specific block, enabling users to modify its internal structure or properties."],["This method accepts a `MutatorIcon` instance as an argument, which represents the visual element and functionality of the mutator dialog, or `null` to remove any existing mutator."],["Calling `setMutator()` with a `MutatorIcon` instance makes the block mutable and allows users to interact with the dialog to adjust its behavior or appearance."]]],[]]