Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > Caja de herramientas > onDragEnter
Controla cuando un cursor con un bloque o una burbuja ingresa a este objetivo de arrastre.
Signature:
onDragEnter(_dragElement: IDraggable): void;
Parámetros
Parámetro |
Tipo |
Descripción |
_dragElement |
IDraggable |
El bloque o la burbuja que se está arrastrando. |
Muestra:
void
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-08-22 (UTC)
[null,null,["Última actualización: 2024-08-22 (UTC)"],[[["The `Toolbox.onDragEnter()` method is triggered when a draggable element (like a block or bubble) is dragged over the toolbox."],["It takes one argument: `_dragElement`, which represents the draggable element being dragged."],["This method doesn't return any value and is used to handle the event of a draggable element entering the toolbox's drag target area."]]],["The `Toolbox.onDragEnter()` method is triggered when a draggable element, such as a block or bubble, enters a drag target. This method accepts one parameter, `_dragElement`, which represents the `IDraggable` object being dragged. The method's purpose is to handle this drag-enter event, and it doesn't return any value. Its core function is to process the interaction of a dragged element entering a specific target area.\n"]]