blockly > BlockSvg > setMutator
Metoda BlockSvg.setMutator()
Daj temu blokowi okno mutatora.
Podpis:
setMutator(mutator: MutatorIcon | null): void;
Parametry
Parametr |
Typ |
Opis |
mutator |
MutatorIcon | wartość null |
Wystąpienie okna mutatora lub wartość null do usunięcia. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-11 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]],[]]