Our state of the art Gantt chart


Post by Qwerty »

Hi,

We recently have been trying to add some validations to the Duration column using finalizeCellEditor and figure it out that the tooltip is not showing up when the validation return false.

We have tried on the demo and also found that the tooltip shows up for other fields ('name', 'progress') when the validation failed, but not for the 'duration'.

Here is snippet of our code for duration column:

{
      text: 'Duration',
      type: 'duration',
      decimalPrecision: 0,
      finalizeCellEdit: async ({ value }) => {
        const MAXIMUM_DURATION_DAYS = 365;

    if (!isInteger(value.magnitude)) {
      return 'can only be integer';
    }

    if (value.magnitude > MAXIMUM_DURATION_DAYS) {
      return 'reach maximum duration';
    }

    return true;
  }
}

Post by mats »

Reproduced, we'll get this fixed! Thanks for the report.

https://github.com/bryntum/support/issues/1139


Post Reply