3.7.5 • Published 16 days ago
@types/dragula v3.7.5
Installation
npm install --save @types/dragula
Summary
This package contains type definitions for dragula (http://bevacqua.github.io/dragula/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dragula/v2.
index.d.ts
// Type definitions for dragula v2.1.2
// Project: http://bevacqua.github.io/dragula/
// Definitions by: Paul Welter <https://github.com/pwelter34>
// Yang He <https://github.com/abruzzihraig>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var dragula: dragula.Dragula;
export = dragula;
export as namespace dragula;
declare namespace dragula {
interface DragulaOptions {
containers?: Element[] | undefined;
isContainer?: ((el?: Element) => boolean) | undefined;
moves?: ((el?: Element, container?: Element, handle?: Element, sibling?: Element) => boolean) | undefined;
accepts?: ((el?: Element, target?: Element, source?: Element, sibling?: Element) => boolean) | undefined;
invalid?: ((el?: Element, target?: Element) => boolean) | undefined;
direction?: string | undefined;
copy?: ((el: Element, source: Element) => boolean) | boolean | undefined;
revertOnSpill?: boolean | undefined;
removeOnSpill?: boolean | undefined;
delay?: boolean | number | undefined;
mirrorContainer?: Element | undefined;
ignoreInputTextSelection?: boolean | undefined;
}
interface Drake {
containers: Element[];
dragging: boolean;
start(item:Element): void;
end(): void;
cancel(revert:boolean): void;
cancel(): void;
remove(): void;
on(events: string, callback: Function): Drake;
destroy(): void;
}
interface Dragula {
(containers: Element[], options: DragulaOptions): Drake;
(containers: Element, options: DragulaOptions): Drake;
(containers: Element[]): Drake;
(options: DragulaOptions): Drake;
(): Drake;
}
}
Additional Details
- Last updated: Tue, 06 Jul 2021 20:32:48 GMT
- Dependencies: none
- Global values:
dragula
Credits
These definitions were written by Paul Welter, and Yang He.
3.7.5
16 days ago
3.7.4
6 months ago
3.7.3
7 months ago
3.7.2
8 months ago
2.1.38
7 months ago
2.1.39
6 months ago
2.1.37
8 months ago
3.7.1
3 years ago
2.1.36
3 years ago
2.1.35
4 years ago
3.7.0
4 years ago
2.1.34
6 years ago
2.1.33
6 years ago
2.1.32
7 years ago
2.1.31
7 years ago
2.1.30
7 years ago
2.1.29
8 years ago
2.1.28
8 years ago
2.1.27-alpha
8 years ago
2.1.26-alpha
8 years ago
2.1.25-alpha
8 years ago
2.1.24-alpha
8 years ago
2.1.23-alpha
8 years ago
2.1.22-alpha
8 years ago
2.1.21-alpha
8 years ago
2.1.16-alpha
8 years ago
2.1.15-alpha
8 years ago