/*=========================================================================================

    File Name: add-on-drag-drop.js

    Description: drag & drop elements using dragula js.

    --------------------------------------------------------------------------------------

    Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template

    Author: PIXINVENT

    Author URL: http://www.themeforest.net/user/pixinvent

==========================================================================================*/



$(document).ready(function () {



  // Draggable Cards

  dragula([document.getElementById('card-drag-area')]);



  // Sortable Lists

  dragula([document.getElementById('basic-list-group')]);

  dragula([document.getElementById('multiple-list-group-a'), document.getElementById('multiple-list-group-b')]);



  // With Handles

  dragula([document.getElementById("handle-list-1"), document.getElementById("handle-list-2")], {

    moves: function (el, container, handle) {

      return handle.classList.contains('handle');

    }

  });



});

