Skip to content

Hours not taken into account #534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JuGid opened this issue Apr 17, 2025 · 0 comments
Open

Hours not taken into account #534

JuGid opened this issue Apr 17, 2025 · 0 comments

Comments

@JuGid
Copy link

JuGid commented Apr 17, 2025

First, this library is really fantastic and fit most of my use cases.

While I'm waiting for this PR to be merged (#528), I just prepare my tasks to welcome it.
This is how my tasks are :

let tasks = [
    {
        id: 'XXX',
        name: 'Programmation bas niveau',
        start: '2025-01-01T09:00'
        end: '2025-01-01T15:00'
        group: 'Programmation bas niveau'
    },
    /...
]

The starting time (09:00:00) is taken by Frappe/Gantt, but the end time isn't (15:00:00), so my Hours view is useless since Gantt make it ends at the end of the day.

This is my Gantt init :

let gantt = new Gantt("#gantt", tasks, {
    infinite_padding: false,
    view_mode_select: true,
    date_format: 'YYY-MM-DDTHH:mm',
    readonly: true,
    scroll_to: 'start',
    popup_on: 'hover',
    lines: 'vertical'
});

This is what Gantt gives me :

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant