forked from syncfusion/ej2-javascript-ui-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdroppable-model.d.ts
41 lines (34 loc) · 1.33 KB
/
droppable-model.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { Base } from './base';import { Browser } from './browser';import { isVisible, matches } from './dom';import { Property, NotifyPropertyChanges, INotifyPropertyChanged, Event } from './notify-property-change';import { EventHandler } from './event-handler';import { compareElementParent } from './util';import {Coordinates, DropInfo} from './draggable';
import {DropEventArgs} from "./droppable";
/**
* Interface for a class Droppable
*/
export interface DroppableModel {
/**
* Defines the selector for draggable element to be accepted by the droppable.
*/
accept?: string;
/**
* Defines the scope value to group sets of draggable and droppable items.
* A draggable with the same scope value will only be accepted by the droppable.
*/
scope?: string;
/**
* Specifies the callback function, which will be triggered while drag element is dropped in droppable.
*
* @event drop
*/
drop?: (args: DropEventArgs) => void;
/**
* Specifies the callback function, which will be triggered while drag element is moved over droppable element.
*
* @event over
*/
over?: Function;
/**
* Specifies the callback function, which will be triggered while drag element is moved out of droppable element.
*
* @event bind
*/
out?: Function;
}