DayPilot.Kanban.onCardDelete

Fired before the default event delete action. You can cancel the default action (which is to remove the card from the control when cardDeleteHandling is set to "Update") using args.preventDefault();

Declaration

DayPilot.Kanban.onCardDelete(args);

Parameters

  • args.card (DayPilot.Card object)
  • args.preventDefault()

Example

<div id="dp"></div>

<script type="text/javascript">

    var dp = new DayPilot.Kanban("dp");

    // ...

    dp.cardDeleteHandling = "Update";
    dp.onCardDelete = function(args) {
        if (!confirm("Do you really want to delete this card?")) {
          args.preventDefault();
        }
    };
    dp.init();

</script>