blockly > Suspenso > init (link em inglês)
Método Flyout.init()
Inicializa o menu suspenso.
Signature:
init(targetWorkspace: WorkspaceSvg): void;
Parâmetros
Parâmetro |
Tipo |
Descrição |
targetWorkspace |
WorkspaceSvg |
O espaço de trabalho em que novos blocos serão criados. |
Retorna:
void
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-09-09 UTC.
[null,null,["Última atualização 2024-09-09 UTC."],[[["The `Flyout.init()` method initializes a flyout, a UI element for selecting blocks in Blockly."],["It takes the target workspace as a parameter to determine where new blocks created from the flyout will be placed."],["This method prepares the flyout for interaction, but doesn't display it yet."]]],["The `Flyout.init()` method initializes a flyout, a component for creating new blocks. It takes one parameter: `targetWorkspace`, of type `WorkspaceSvg`. This parameter specifies the workspace where the new blocks will be created. The method does not return any value (void). Its core action is to set up the flyout to interact with the designated workspace.\n"]]