Our state of the art Gantt chart


Post by annaj »

Dear Bryntum Team,

We just upgraded from Bryntum Gantt 6.1.6 to 6.2.1.

Previously we used the Button ref syntax to allow us to use an items array on the Task Editor PredecessorsTab, SuccessorsTab and ResourcesTab.

  • the 'add' button no longer works on PredecessorsTab and SuccessorsTab. It never hits insertNewDependency() in onAddClick

  • the 'add' button still works on ResourcesTab.

  • the 'remove' button still works for all three, it still fires onRemoveClick.

sample config:

taskEdit: {
  items: {
    predecessorsTab: {
      items: {
        toolbar: {
          items: [{ ref: 'remove', text: 'Remove' }, '|', { ref: 'add', text: 'Add' }],
        },
      },
    },
  },
},

https://codepen.io/adammarshall84/pen/yyyxdbd?editors=1010


Post by tasnim »

Hey,

Could you please try this?

const commonTab = {
  items: {
    toolbar: {
      items: {
        remove : {
          ref: 'remove',
          text: 'Remove',
        },
        // '|',
        add : {
          ref: 'add',
          text: 'Add',
        },
      },
    },
  },
};

Does that help?

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by annaj »

yes it works if you use the object notation, but it doesn't work if you use the array notation - as per the documentation https://bryntum.com/products/gantt/docs/api/Core/widget/Toolbar


Post by tasnim »

Thanks for the report. I've opened a ticket to investigate it. Here is the ticket link to track progress https://github.com/bryntum/support/issues/11327

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post Reply