@wix/design-system
Version:
@wix/design-system
49 lines • 1.43 kB
TypeScript
export class Draggable extends React.Component<any, any, any> {
constructor(props: any);
constructor(props: any, context: any);
state: {
delayed: boolean;
};
delayTimer: null;
shouldComponentUpdate({ listOfPropsThatAffectItems, ...nextProps }: {
[x: string]: any;
listOfPropsThatAffectItems: any;
}, nextState: any): boolean;
componentWillUnmount(): void;
resetDelayState: () => void;
resetDelayTimer: () => void;
countDelay: () => void;
onDragStart: ({ id, index, containerId, groupName, item }: {
id: any;
index: any;
containerId: any;
groupName: any;
item: any;
}) => void;
onDragEnd: ({ id, index, containerId, groupName, item }: {
id: any;
index: any;
containerId: any;
groupName: any;
item: any;
}) => void;
canDrag: ({ id, index, containerId, groupName, item }: {
id: any;
index: any;
containerId: any;
groupName: any;
item: any;
}) => any;
render(): React.JSX.Element;
}
export namespace Draggable {
export namespace defaultProps {
let droppable: boolean;
}
export { Draggable as Item };
export { DraggableManager as Manager };
}
export default Draggable;
import React from 'react';
import DraggableManager from './components/DraggableManager';
//# sourceMappingURL=Draggable.d.ts.map