Skip to main content

makeDraggable()

makeDraggable<T>(e, options?): Element

Example: https://public.datagrok.ai/js/samples/ui/interactivity/drag-and-drop

Type parameters

Type parameter
T

Parameters

ParameterType
eElement
options?object
options.allowCopy?() => boolean
options.check?() => boolean
options.dragObjectType?string
options.getDragCaption?() => any
options.getDragContext?() => any
options.getDragHint?() => string
options.getDragObject?() => any
options.onDragEnd?() => void
options.onDragStart?(me) => boolean

Returns

Element

Source

ui.ts:642