debian-mirror-gitlab/app/assets/javascripts/sortable/constants.js
2022-07-16 19:58:13 +02:00

21 lines
434 B
JavaScript

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,
};