Our state of the art Gantt chart


Post by noahst »

Hi,

I would like to implement a custom AggreageColumn that skips inactive records (like effortColumn). As far as I can see, the aggregator function from the docs only provides values as paramater.

myAggregator(...values) {
        let result = 0;

    for (let i = 0, { length } = args; i < length; i++) {
        result += parseInt(args[i], 10);
    }
    return result;
}

Can you provide a code-snipet for this scenario?

Btw. I think aggregator function as specified in docs doesn't work (args vs. values).

Thanks Noah


Post by mats »

This is not yet supported, we'll add support for it though: https://github.com/bryntum/support/issues/5344

For now, you can implement this yourself and simply iterate the children in a custom renderer method of your own.


Post Reply