blockly > BlockSvg > setDragStrategy
Método BlockSvg.setDragStrategy()
Define a estratégia de arrastar para este bloco.
Signature:
setDragStrategy(dragStrategy: IDragStrategy): void;
Parâmetros
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-11 UTC.
[null,null,["Última atualização 2024-09-11 UTC."],[[["The `setDragStrategy` method allows you to define how a block behaves when dragged."],["It accepts an `IDragStrategy` object as input to control the dragging behavior."],["Calling this method assigns the specified drag strategy to the current block."]]],["The `setDragStrategy()` method, part of the `BlockSvg` class, configures the drag behavior of a block. It accepts a single parameter, `dragStrategy`, which is of type `IDragStrategy`. This parameter dictates the specific strategy to be used when dragging the block. The method modifies the block's behavior and doesn't return any value.\n"]]