erwan
Posts: 11
Joined: Fri Nov 27, 2020 7:26 am

Lock a task?

Hi all,

Is it possible to lock one task in a interactive gantt?
I don't find anyting in the doc.

Thank you.

Erwan
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Lock a task?

Hi Erwan,

We appreciate you reaching out to us.
I disable dragging in the X and Y dimension, now task "Product pages" is locked.

Code: Select all

dragDrop: {
    draggableX: false,
    draggableY: false
}

Live demo:
https://jsfiddle.net/BlackLabel/L6w18ok7/

API References:
https://api.highcharts.com/gantt/series ... draggableX

Feel free to ask any further questions!
Best regards.
Sebastian Hajdus
Highcharts Developer
erwan
Posts: 11
Joined: Fri Nov 27, 2020 7:26 am

Re: Lock a task?

Thanks a lot.
Is it also possible to prevent to delete?

Erwan
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Lock a task?

You're welcome!

Adding task and deleting are wrote in javaScript, you need customization for your goals.
I think the best way will be to add "if condition" correlated with task name point.name.

Best regards.
Sebastian Hajdus
Highcharts Developer
erwan
Posts: 11
Joined: Fri Nov 27, 2020 7:26 am

Re: Lock a task?

Ok. Thank you.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Lock a task?

You're welcome!
In case of any further questions, feel free to contact us again.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”