2022-07-16 23:28:13 +05:30
|
|
|
export const DRAG_CLASS = 'is-dragging';
|
|
|
|
|
2022-06-21 17:19:12 +05:30
|
|
|
/**
|
|
|
|
* 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,
|
2022-07-16 23:28:13 +05:30
|
|
|
fallbackClass: DRAG_CLASS,
|
2022-06-21 17:19:12 +05:30
|
|
|
fallbackOnBody: true,
|
|
|
|
ghostClass: 'is-ghost',
|
|
|
|
fallbackTolerance: 1,
|
|
|
|
};
|