blockly > DragTarget > onDragExit
Metodo DragTarget.onTrascinaExit()
Gestisce quando un cursore con un blocco o una bolla esce dal target di trascinamento.
Firma:
onDragExit(_dragElement: IDraggable): void;
Parametri
Parametro |
Tipo |
Descrizione |
_dragElement |
IDraggable |
Il blocco o la bolla attualmente trascinato. |
Resi:
null
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-21 UTC.
[null,null,["Ultimo aggiornamento 2024-08-21 UTC."],[[["The `onDragExit` method is triggered when a dragged block or bubble leaves the area of this drag target."],["It receives the currently dragged element (block or bubble) as an argument to potentially handle the exit event."],["This method does not return any value and is used to manage behavior when a draggable item is no longer hovering over the target."]]],["The `onDragExit()` method within the `DragTarget` class manages the event when a dragged element (either a block or a bubble) leaves the drag target area. It accepts one parameter, `_dragElement`, of type `IDraggable`, which represents the block or bubble being moved. This method has no return value, as it's designed to handle the exit event and update the target state.\n"]]