blockly > Wylot > setContents
Metoda Flyout.setContents()
Przechowuj listę przycisków i bloków z menu.
Podpis:
setContents(contents: FlyoutItem[]): void;
Parametry
Parametr |
Typ |
Opis |
treść |
FlyoutItem[] |
Tablica elementów dla wylotu. |
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-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["The `setContents` method populates the Blockly flyout with a specified array of items, which can be either buttons or blocks."],["This method accepts an array of `FlyoutItem` objects as its input and does not return any value."],["The `contents` parameter represents the array of items to be displayed within the flyout."]]],[]]