Our state of the art Gantt chart


Post by amandachen »

Hi,

I am working with the gantt tree and I would like to be able to move and resize all tasks (parent and children) independently. So far, I have been able to accomplish most of what I want by setting manuallyScheduled: true on all tasks and following the guidance from another post viewtopic.php?f=52&t=17415 to override the isEditable and setEndDate methods on the TaskModel.

However, I am still not able to resize the parent/summary tasks. The resize cursor does not show up in the UI. Can you show me how/if I can achieve this?


Post by mats »

This is governed by the value returned by this getter. You can override it in your TaskModel subclass, our default implementation looks like this:

get isResizable() {
        return this.resizable && !this.milestone && !this.isParent;
    }

Post by amandachen »

Thank you! I removed the check for !this.isParent here and it worked.


Post Reply