How to save the current swimlane order after swimlaneDrag
Hi bryntum team
How to save the swimlane order after swimlaneDrag? Is there a hook function similar to taskDragEnd?
Hi bryntum team
How to save the swimlane order after swimlaneDrag? Is there a hook function similar to taskDragEnd?
Hello,
I'm not sure I got your question. Are you looking for this https://bryntum.com/products/taskboard/docs/api/Scheduler/model/ProjectModel#function-commitAsync
If not could you please explain a bit further?
Hi tasnim
How to add an eventlistener for swimlaneDrag? I need to drag the swimlane and record the order of the swimlane.
Hi,
Unfortunately, there are no listeners for swimlaneDrag. I've opened a ticket to implement that. Here it is https://github.com/bryntum/support/issues/6140
Workaround:
But swimlane is in a store called swimlanes. And there you could listen for change
event
https://bryntum.com/products/taskboard/docs/api/Core/data/Store#event-change
taskboard.swimlanes.on('change', (event) => console.log(event));
All The Best,
Tasnim
Hi tasnim
I tried your method, but it didn't work.
ngAfterViewInit(): void {
this.taskboard = this.taskboardComponent.instance;
this.taskboard.swimlanes.on('change', this.swimlaneChange.bind(this))
}
swimlaneChange(e: any) {
console.log(e)
}
/code]
Hello lanpeng,
I checked with one of our angular demos but it works fine here.
Could you please upload a runnable test case so we could reproduce the issue and debug it?
Or
I've also provided the demo that I've configured with that code, you could compare it with your code
thanks tasnim .It works welll.