Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > IDragger > onDragStart
Método IDragger.onDragStart()
Controla cualquier inicio de arrastre.
Signature:
onDragStart(e: PointerEvent): void;
Parámetros
Parámetro |
Tipo |
Descripción |
e |
PointerEvent |
PointerEvent que inició el arrastre. |
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-09-12 (UTC)
[null,null,["Última actualización: 2024-09-12 (UTC)"],[[["The `onDragStart` method is called when a drag operation begins, signaling the start of dragging a block."],["It receives a PointerEvent object (`e`) containing information about the event that initiated the drag."],["This method is part of the `IDragger` interface in Blockly and is responsible for handling any setup required at the start of a drag."],["The `onDragStart` method does not return any value (void)."]]],["The `onDragStart` method, part of the `IDragger` interface, manages the initiation of a drag operation. It accepts a single parameter, `e`, which is a `PointerEvent` object representing the event that triggered the drag. The method's purpose is to handle the beginning of the drag action, and it doesn't return any value (void).\n"]]