Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Block > compose
Właściwość Block.compose
Opcjonalna metoda, która zmienia konfigurację bloku na podstawie zawartości okna mutatora.
Podpis:
compose?: (rootBlock: Block) => void;
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-05-16 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-05-16 UTC."],[[["`compose` is an optional function on blocks that can be used to reconfigure the block's appearance and behavior."],["This function is triggered when changes are made within the block's mutator dialog, allowing dynamic updates based on user interactions."],["The `compose` function receives the parent block as an argument, providing context and access to related components for modification."]]],["The `Block.compose` property is an optional function within the Blockly library. Its purpose is to modify a block's configuration after a mutator dialog's contents have been changed. This function takes a `Block` as a parameter and executes to reconfigure the block based on the updates from the dialog. It uses the updated information in order to compose the block.\n"]]