主题
DragTargetEvent 继承自: Event['DragTarget']
Event payload for drag move and accepted-drop callbacks.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
src_id | Optional[int] | required | Draggable 源控件的 ID(若有)。 |
src | Draggable | init=False | 由 src_id 解析出的源 Draggable 控件。 |
local_position | Offset | metadata={'data_field': 'l'} | Pointer position relative to the target bounds. |
global_position | Offset | metadata={'data_field': 'g'} | Pointer position in the global coordinate space. |