- draggable(elemOrQuery, listener, options?): (() => void)
Parameters
- elemOrQuery: string | HTMLElement | SVGElement
- listener: Readonly<{
abort?: ((reason: string, state: Readonly<{
delta: Point;
initial: Point;
token?: object;
viewport: Point;
}>) => void);
progress?: ((state: Readonly<{
delta: Point;
initial: Point;
token?: object;
viewport: Point;
}>) => Readonly<{
abort?: boolean;
viewport?: Point;
}>);
start?: (() => Readonly<{
allow: boolean;
token?: object;
}>);
success?: ((state: Readonly<{
delta: Point;
initial: Point;
token?: object;
viewport: Point;
}>) => void);
}> - options: Partial<DragOptions> = {}
Returns (() => void)