Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Zablokuj > setDeletable
Metoda Block.setDeletable()
Określ, czy można usunąć tę blokadę.
Podpis:
setDeletable(deletable: boolean): void;
Parametry
| Parametr |
Typ |
Opis |
| możliwe do usunięcia |
wartość logiczna |
Prawda, jeśli można usunąć. |
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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `setDeletable()` method determines if a block can be deleted. It accepts a single boolean parameter, `deletable`. If `deletable` is set to `true`, the block can be deleted. Otherwise, the block cannot be deleted. The method returns no value (`void`). This method changes the deletable status of the block.\n"]]