Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Motyw > setStartHats
Metoda Theme.setStartHats()
Skonfiguruj kapelusze początkowe motywu.
Podpis:
setStartHats(startHats: boolean): void;
Parametry
| Parametr |
Typ |
Opis |
| startHats |
wartość logiczna |
Wartość „prawda”, jeśli w motywie jest włączona opcja „start-bar”. W przeciwnym razie wartość „fałsz”. |
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 `setStartHats()` method configures a theme's start hats. It accepts a boolean parameter, `startHats`. If `startHats` is true, the theme will enable start hats; if false, they will be disabled. The method does not return any value. Its sole function is to set the start hats setting for a given theme.\n"]]