Our state of the art Gantt chart


Post by mats »

Please provide the code, as text not as images.


Post by omkar ankam »

tbar: [
      {
        type: 'button',
        ref: 'featuresButton',
        icon: 'b-fa-eye',
        text: 'View',
        iconAlign: 'end',
        menu: {
          items: [
            {
              ref: 'criticalPathsButton',
              text: 'Critical paths',
              feature: 'criticalPaths',
              tooltip: 'Highlight critical paths',
              checked: false,
              toggleable: true,
              onToggle(props: any) {
                const {
                  source: {
                    parent: { parent: gantt },
                  },
                } = props;
                // logging gantt instance in the console
                console.log(gantt);
              },
              // onItem(props: any) {
              //   // const gantt = props.source.parent.parent;
              //   console.log(props.source.parent);
              //   // const { source: gantt, taskRecord } = props;
              //   // gantt.features.criticalPaths.disabled = !taskRecord.checked;
              // },
              // onToggle({ source, checked }: { source: any; checked: any }) {
              //   const { source: gantt, taskRecord } = source;
              //   gantt.features.criticalPaths.disabled = !checked;
              // },
            },
          ],
        },
      },
    ],

Post by tasnim »

Hi,

I replied here viewtopic.php?p=121909#p121909.
Please check, this should help


Post Reply