UNPKG

aurelia-dragula

Version:
36 lines (30 loc) 716 B
export const GLOBAL_OPTIONS = 'GlobalOptions' export const DIRECTION = { VERTICAL: 'vertical', HORIZONTAL: 'horizontal' } export class Options { constructor () { this.moves = Options.always this.accepts = Options.always this.invalid = Options.invalidTarget this.containers = [] this.isContainer = Options.never this.copy = false this.copySortSource = false this.revertOnSpill = true this.removeOnSpill = false this.direction = DIRECTION.VERTICAL this.ignoreInputTextSelection = true this.mirrorContainer = document.body } static always () { return true } static never () { return false } static invalidTarget () { return false } }