Skip to content

Hours not taken into accountΒ #534

@JuGid

Description

@JuGid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions