what is the event that gives me the old and new position of the card after a move?
I cannot find the current position of the card within the column.
as in the xamarin version ...
thanks
|
<ejs-kanban id="Kanban" dragStop="OnDragStop"></ejs-kanban> |
|
var position;
function OnDragStop(args) {
this.position = args.dropIndex;
console.log(this.position);
} |
very good.
is there any way to know the starting index? where can i find information on these properties?
thank you
|
<ejs-kanban id="Kanban" keyField="Status" created="onCreate" dragStart="OnDragStart">
<script>
var initial;
var cards;
var id;
var kanbanObj;
function onCreate() {
kanbanObj = this;
}
function OnDragStart(args) {
this.initial = args.data[0].Id;
this.cards = kanbanObj.getColumnData(args.data[0].Status);
this.id = this.cards.indexOf(args.data[0]);
console.log(this.id);
}
</script> |
good...very good...
thanks