Make the week start on Sunday instead of Monday in Angular @worktile/gantt (ngx-gantt)

Discussão em 'Angular' iniciado por Ehar, Dezembro 29, 2024.

  1. Ehar

    Ehar Guest

    I need to make the Gantt to start on Sunday instead of Monday - we are using Angular @worktile/gantt (ngx-gantt) - Right now the Gantt's UI shows that the week starts on Monday.

    This is what I tried and didn't work:

    viewOptions: any = {
    dateFormat: {
    yearMonth: 'MM/y',
    yearQuarter: 'y',
    year: 'y',
    week: 'w',
    month: 'MM',
    },
    dateOptions: {
    weekStartsOn: 6,
    },
    };


    <ngx-gantt
    #gantt
    [groups]="groups"
    [items]="items"
    [viewOptions]="viewOptions"
    [loading]="isLoading"
    [draggable]="true"
    [viewType]="ganttDateMap[dateView]"
    (barClick)="onBarClick($event)"
    (dragEnded)="onBarDragEnded($event)"
    >

    Continue reading...

Compartilhe esta Página