Skip to content

@vtj / Modules / ui / Draggable

Class: Draggable

ui.Draggable

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Draggable(el, options?): Draggable

Parameters

NameType
elHTMLElement
options?DraggableOptions

Returns

Draggable

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

NameType
targetRectDOMRect
rectDOMRect
xnumber
ynumber

Returns

Object

NameType
xnumber
ynumber

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

Released under the MIT License.