blob: f5bb0a3b11f26ec9e4b453b354453714b3e52b99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
export const DRAG_CLASS = 'is-dragging';
/**
* Default config options for sortablejs.
* @type {object}
*
* @example
* import Sortable from 'sortablejs';
*
* const sortable = Sortable.create(el, {
* ...defaultSortableOptions,
* });
*/
export const defaultSortableOptions = {
animation: 200,
forceFallback: true,
fallbackClass: DRAG_CLASS,
fallbackOnBody: true,
ghostClass: 'is-ghost',
fallbackTolerance: 1,
};
|