/// <reference path="./dragula.d.ts" />

import dragula = require("dragula");

// containers
var d1 = dragula([document.querySelector('#left'), document.querySelector('#right')]);

// all options
var d2 = dragula({
    isContainer: function (el) {
        return false;
    },
    moves: function (el, container, handle) {
        return true;
    },
    accepts: function (el, target, source, sibling) {
        return true;
    },
    invalid: function (el, target) {
        return el.tagName === 'A' || el.tagName === 'BUTTON';
    },
    direction: 'vertical',
    copy: false,
    revertOnSpill: false,
    removeOnSpill: false,
    delay: false,
    mirrorContainer: document.body
});

// empty call
var d3 = dragula();


// drake API
var drake = dragula({
    copy: true
});

drake.containers.push(document.querySelector('#container'));
