Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > IFlyout > isBlockCreatable
Metoda IFlyout.isBlockCreatable()
Czy to menu umożliwia utworzenie nowej instancji danego bloku? Służy do określenia, czy blok można „przeciągnąć” z wyskakującego okienka.
Podpis:
isBlockCreatable(block: BlockSvg): boolean;
Parametry
Parametr |
Typ |
Opis |
blok |
BlockSvg |
Blok, który chcesz skopiować z wysuwanego menu. |
Zwroty:
wartość logiczna
Wartość true, jeśli możesz utworzyć nową instancję bloku, a w przeciwnym razie – false.
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-11-22 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: 2024-11-22 UTC."],[[["The `isBlockCreatable()` method within the `IFlyout` interface determines whether a specific block can be duplicated from the flyout."],["It receives a `BlockSvg` object as input, representing the block to be copied."],["The method returns a boolean value: `true` if a new instance of the block is permitted, `false` otherwise."]]],["The `isBlockCreatable` method determines if a new instance of a specified block can be created from a flyout. It accepts a `BlockSvg` as a parameter, representing the block in question. The method returns a boolean value: `true` if the block can be duplicated from the flyout, and `false` if not. This functionality is used to ascertain whether a block can be dragged from the flyout.\n"]]