@vtj / Modules / ui / Draggable
Class: Draggable
ui.Draggable
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Draggable(el
, options?
): Draggable
Parameters
Name | Type |
---|---|
el | HTMLElement |
options? | DraggableOptions |
Returns
Defined in
packages/ui/types/directives/vDraggable.d.ts:36
Properties
dragging
• dragging: boolean
Defined in
packages/ui/types/directives/vDraggable.d.ts:35
el
• el: HTMLElement
Defined in
packages/ui/types/directives/vDraggable.d.ts:32
getHandle
• Private
getHandle: any
Defined in
packages/ui/types/directives/vDraggable.d.ts:37
getTarget
• Private
getTarget: any
Defined in
packages/ui/types/directives/vDraggable.d.ts:38
options
• options: DraggableOptions
Defined in
packages/ui/types/directives/vDraggable.d.ts:33
scope
• Private
scope: any
Defined in
packages/ui/types/directives/vDraggable.d.ts:34
Methods
destory
▸ destory(): void
Returns
void
Defined in
packages/ui/types/directives/vDraggable.d.ts:44
getPosition
▸ getPosition(targetRect
, rect
, x
, y
): Object
Parameters
Name | Type |
---|---|
targetRect | DOMRect |
rect | DOMRect |
x | number |
y | number |
Returns
Object
Name | Type |
---|---|
x | number |
y | number |
Defined in
packages/ui/types/directives/vDraggable.d.ts:40
init
▸ init(): void
Returns
void
Defined in
packages/ui/types/directives/vDraggable.d.ts:39