summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/sortable/constants.js
blob: 7fddac00ab2446996b50740463586011699c7492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * 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: 'is-dragging',
  fallbackOnBody: true,
  ghostClass: 'is-ghost',
  fallbackTolerance: 1,
};