DragTargetEvent
Event payload for drag move and accepted-drop callbacks.
Inherits: Event
Properties
global_position- Pointer position in the global coordinate space.local_position- Pointer position relative to the target bounds.offset- Pointer position in global coordinates.src- SourceDraggablecontrol resolved fromsrc_id.src_id- ID of theDraggablesource control, if available.x- Horizontal pointer position in the global coordinate space.y- Vertical pointer position in the global coordinate space.
Properties
global_positionclass-attributeinstance-attribute
global_position: Offset = field(metadata={'data_field': 'g'})Pointer position in the global coordinate space.
local_positionclass-attributeinstance-attribute
local_position: Offset = field(metadata={'data_field': 'l'})Pointer position relative to the target bounds.
offsetdeprecatedproperty
offset: OffsetDeprecated since version 0.85.0 and scheduled for removal in 0.88.0. Use local_position for target-relative coordinates or global_position for global coordinates instead.
Pointer position in global coordinates.
xdeprecatedproperty
x: floatDeprecated since version 0.85.0 and scheduled for removal in 0.88.0. Use local_position.x for target-relative coordinates or global_position.x for global coordinates instead.
Horizontal pointer position in the global coordinate space.
ydeprecatedproperty
y: floatDeprecated since version 0.85.0 and scheduled for removal in 0.88.0. Use local_position.y for target-relative coordinates or global_position.y for global coordinates instead.
Vertical pointer position in the global coordinate space.