Our state of the art Gantt chart


Post by shimnx »

I want to pick the week of the year and the number of weeks is displayed on the side like the picture.Do you support this way? If there is no such control now, can you add it after we buy the authorization?

Attachments
选周.png
选周.png (14.66 KiB) Viewed 427 times

Post by mats »

We do not have a date range picker, but it's on our roadmap so for sure it's coming. You can track (upvote) this ticket to stay up to date: https://github.com/bryntum/support/issues/1888


Post by shimnx »

What we need is not a range of times, we need to select the week control

Attachments
Inked选周_LI.jpg
Inked选周_LI.jpg (94.75 KiB) Viewed 420 times

Post by mats »

Right, but a week has a start date and end date and the date picker just selects a single date


Post by Animal »

There's a config show show the week number in a DatePicker: https://www.bryntum.com/docs/scheduler/api/Core/widget/DatePicker#config-showWeekColumn

So you could configure your DateField with

picker : {
    showWeekColumn : true,
    onPaint({ firstPaint }) {
        if (firstPaint) {
            EventHelper.on({
                element : this.element,
                delegate : '.b-week-number-cell',
                click(e) {
                    alert(`clicked week ${e.target.parentNode.dataset.week}`); //<- you decide what to do here
                }
            });
        };
    }
}

We should probably add a weekClick event which fires when the week column is shown and it's clicked on.


Post Reply