Back

VibeFox JS Gantt — Help

Overview

VibeFox JS Gantt is a project planning library with two components: Gantt (createGantt) — a task table with a timeline, dependencies, scheduling, calendars, resources and the critical path — and Scheduler (createScheduler) — an event calendar with month, week, day, agenda, year and resource timeline views. It is plain JavaScript with no dependencies and works with or without a framework.

Both components use the same methods as every VibeFox JS library: setData, setOptions, on, getState, setState, setTheme, destroy. They share the calendar format, so a Scheduler can follow the working calendars and resources of a Gantt.

Key features

  • Gantt: work breakdown structure (WBS) with summary tasks and milestones, drag to move / resize / change progress, links of the four types (FS, SS, FF, SF) with lags, automatic scheduling of successors, undo / redo.
  • Scheduling: working days and hours, named calendars with holidays and exceptions, hour-granular tasks, constraints (ASAP, ALAP, SNET, SNLT, FNET, FNLT, MSO, MFO), deadlines, conflicts, critical path, slack, schedule health.
  • Resources: assignments with units, a resource panel with a load histogram, overload marks, resource leveling with a preview.
  • Views: zoom from hours to quarters, baselines, progress line, S-curve, PERT network, focus mode (one dependency chain), workload strip, split tasks, what-if scenarios with comparison.
  • Editing: inline cell editing, a task editor dialog with tabs, context menus, keyboard editing of bars and links.
  • Filter, sort and search of tasks; virtual rendering of 10 000+ tasks.
  • Export: PDF on several pages, vector printing, PNG, CSV, Excel; MS Project XML import and export.
  • Server synchronization (CRUD manager): batched changes, temporary and server ids, conflicts, retries, offline queue.
  • An assistant that understands commands in English and Russian ("move Build by 2 days") without a network, with an optional adapter for your own language model.
  • Scheduler: drag to create / move / resize, full recurrence rules (RFC 5545) with editing of single occurrences, time zones, resources with availability, a resource timeline, quick add from text, free slot search, conflicts, iCalendar import and export, PDF / PNG / print.
  • Five ready-made styles, every color and size as a CSS variable, themes, right-to-left layout, keyboard and screen reader support.

Requirements

  • A current web browser.
  • No runtime dependencies. Nothing is loaded from the network: the library makes no requests of its own (the CRUD manager talks only to the URL you give it).
  • Time zones use the browser's Intl API.
  • Node.js is not needed in the browser. The ES module can be imported in Node (no DOM is touched at import), so the pure functions run on a server: parseMSProjectXML, buildMSProjectXML, parseICS, parseAssistantText, and the Excel helpers createXlsx / readXlsx.

Installation

Files of the library

VibeFox JS Gantt is a separate product with its own files. The whole JavaScript of the library is one file and the styles are one CSS file: a page needs exactly these two. The other files are optional.

FileWhat it is
vibefox-js-gantt.global.jsThe library for a classic <script> tag; defines one global variable, VibeFoxJSGantt. Minified: vibefox-js-gantt.global.min.js.
vibefox-js-gantt.esm.jsThe same code as an ES module. Minified: vibefox-js-gantt.esm.min.js.
vibefox-js-gantt.cssAll styles of the library, inside @layer vfjs; includes the themes light, dark and high-contrast. Minified: vibefox-js-gantt.min.css.
vibefox-js-themes.cssOptional theme pack: 18 ready-made themes (see Theming and styling). Minified: vibefox-js-themes.min.css.
locales/vibefox-js-gantt.<lang>.jsOptional language files, one for each language except English (see Localization and RTL). The same language as an ES module: .esm.js; as plain strings: .json.
vibefox-js-gantt.d.tsTypeScript declarations (also vibefox-js-gantt.esm.d.ts).
*.js.mapSource maps.
vibefox-js-gantt-react.js, vibefox-js-gantt-vue.js, vibefox-js-gantt-svelte.js, vibefox-js-gantt-jquery.jsOptional framework wrappers (each with its .d.ts).
vibefox-js-gantt-angularOptional Angular package (Angular Package Format).
vibefox-js-gantt-wc.jsOptional Web Components wrapper (custom elements).

Script tag

Link the CSS file and the script. The global variable VibeFoxJSGantt holds every export of the library. This also works from a file opened from disk (file://).

<link rel="stylesheet" href="vibefox-js-gantt.css">
<script src="vibefox-js-gantt.global.js"></script>
<script>
  const gantt = VibeFoxJSGantt.createGantt('#app', { data: tasks });
</script>

ES module

Import the ES module file and link the CSS file. Browsers load modules only over http(s), not from file://.

<link rel="stylesheet" href="vibefox-js-gantt.css">
<script type="module">
  import { createGantt } from './vibefox-js-gantt.esm.js';
  const gantt = createGantt('#app', { data: tasks });
</script>

npm

The library is also prepared as an npm package named @vibefox/js-gantt. Install it from the package folder (or its packed .tgz file) that you received, then import it by name. Bundlers take the CSS through the @vibefox/js-gantt/css export.

npm install ./vibefox-js-gantt
import { createGantt } from '@vibefox/js-gantt';
import '@vibefox/js-gantt/css';

Exports of the package: @vibefox/js-gantt (ES module), @vibefox/js-gantt/min, @vibefox/js-gantt/global, @vibefox/js-gantt/global.min, @vibefox/js-gantt/css, @vibefox/js-gantt/min.css, @vibefox/js-gantt/themes, @vibefox/js-gantt/themes.min.css, @vibefox/js-gantt/locales/<lang>, @vibefox/js-gantt/locales/<lang>.json. TypeScript finds the declarations by itself.

Framework wrappers

The wrappers are small separate files; the library works without them. Each wrapper needs only VibeFox JS Gantt and its framework (a peer dependency). The wrappers do not load CSS: link vibefox-js-gantt.css yourself.

FrameworkFilenpm packageSupported versions
Reactvibefox-js-gantt-react.js@vibefox/js-gantt-reactReact 16.8 and newer
Vue 3vibefox-js-gantt-vue.js@vibefox/js-gantt-vueVue 3.3 and newer
Angularvibefox-js-gantt-angular@vibefox/js-gantt-angularAngular 17 and newer
Sveltevibefox-js-gantt-svelte.js@vibefox/js-gantt-svelteSvelte 3, 4 and 5
jQueryvibefox-js-gantt-jquery.js@vibefox/js-gantt-jqueryjQuery 1.12 to 4.x
Web Componentsvibefox-js-gantt-wc.js@vibefox/js-gantt-wcno framework

The ES module wrappers import the library as @vibefox/js-gantt. Without npm, map that name to vibefox-js-gantt.esm.js in your bundler settings or in an import map. The jQuery wrapper takes the library from the global VibeFoxJSGantt.

Common rules of all wrappers: props / inputs are the options of the library (changed ones go to setData or one setOptions call); events are framework events with the same payload object as on(); the instance is available for every method; on the server (SSR) an empty container is rendered and the instance is created in the browser only. The option style (ready-made look) is the prop variant in React, Vue, Svelte and Angular, because style and className / class belong to the host element.

Web Components

Load vibefox-js-gantt-wc.js after the library file. It defines the elements <vfjs-gantt> and <vfjs-scheduler> from the global VibeFoxJSGantt. Attributes are options in kebab-case (JSON for objects and arrays), properties are options, the methods of the component are methods of the element, events are CustomEvents named vfjsgantt:<event> (Scheduler: vfjsscheduler:<event>) with the payload in detail. The element uses the light DOM, so the CSS of the library and your page CSS apply as usual.

<link rel="stylesheet" href="vibefox-js-gantt.css">
<script src="vibefox-js-gantt.global.js"></script>
<script type="module" src="vibefox-js-gantt-wc.js"></script>
<vfjs-gantt id="g" style="height: 400px" show-critical-path></vfjs-gantt>
<script>
  const el = document.getElementById('g');
  el.data = [{ id: 1, name: 'Design', start: '2026-11-02', duration: 5 }];
  el.addEventListener('vfjsgantt:taskClick', (e) => console.log(e.detail.task));
</script>

With a bundler: import * as lib from '@vibefox/js-gantt'; import { define } from '@vibefox/js-gantt-wc'; define(lib);

Quick start

Plain HTML

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" href="vibefox-js-gantt.css">
  <script src="vibefox-js-gantt.global.js"></script>
</head>
<body>
  <div id="plan" style="height: 420px"></div>
  <div id="calendar" style="height: 520px"></div>
  <script>
    const gantt = VibeFoxJSGantt.createGantt('#plan', {
      data: [
        { id: 1, name: 'Website', start: '2026-11-02', end: '2026-11-27' },
        { id: 2, name: 'Design', parent: 1, start: '2026-11-02', duration: 5, progress: 60, resources: ['ann'] },
        { id: 3, name: 'Build', parent: 1, start: '2026-11-09', duration: 10, resources: ['bob'] },
        { id: 4, name: 'Launch', parent: 1, start: '2026-11-27', type: 'milestone' },
      ],
      links: [{ from: 2, to: 3, type: 'FS' }, { from: 3, to: 4 }],
      resources: [{ id: 'ann', name: 'Ann' }, { id: 'bob', name: 'Bob' }],
      workdaysOnly: true,
      showCriticalPath: true,
      on: { taskChange: (e) => console.log('changed', e.task.name, e.changes) },
    });

    const calendar = VibeFoxJSGantt.createScheduler('#calendar', {
      view: 'week',
      data: [
        { id: 'a', title: 'Stand-up', start: '2026-11-02 09:00', end: '2026-11-02 09:15', rrule: 'FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR' },
        { id: 'b', title: 'Review', start: '2026-11-04 14:00', end: '2026-11-04 15:30', color: 'green' },
      ],
    });
  </script>
</body>
</html>

Both components fill their element: give the element a height (without one, a Gantt is 400 px high with its rows scrolling inside, and a Scheduler at least 400 px, growing with its content).

React

import { useRef } from 'react';
import { VibeFoxJSGanttReact } from '@vibefox/js-gantt-react';
import '@vibefox/js-gantt/css';

const tasks = [{ id: 1, name: 'Design', start: '2026-11-02', duration: 5 }];

export function Plan() {
  const gantt = useRef(null); // the VibeFoxJSGantt instance
  return (
    <div style={{ height: 400 }}>
      <button onClick={() => gantt.current.zoomIn()}>Zoom in</button>
      <VibeFoxJSGanttReact ref={gantt} data={tasks} workdaysOnly onTaskChange={(e) => console.log(e.changes)} />
    </div>
  );
}

The Scheduler wrapper is VibeFoxJSSchedulerReact.

Vue 3

<script setup>
import { ref } from 'vue';
import { VibeFoxJSGanttVue, VibeFoxJSSchedulerVue } from '@vibefox/js-gantt-vue';
import '@vibefox/js-gantt/css';
const tasks = ref([{ id: 1, name: 'Design', start: '2026-11-02', duration: 5 }]);
const events = ref([{ id: 'a', title: 'Review', start: '2026-11-04 14:00', end: '2026-11-04 15:00' }]);
</script>
<template>
  <VibeFoxJSGanttVue :data="tasks" :show-critical-path="true" style="height: 400px" @task-change="(e) => console.log(e)" />
  <VibeFoxJSSchedulerVue :data="events" view="month" style="height: 500px" />
</template>

Angular

import { Component } from '@angular/core';
import { VibeFoxJSGanttComponent, VibeFoxJSSchedulerComponent } from '@vibefox/js-gantt-angular';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [VibeFoxJSGanttComponent, VibeFoxJSSchedulerComponent],
  template: `
    <vfjs-gantt-ng #gantt [data]="tasks" [workdaysOnly]="true" style="height: 400px"
      (taskChange)="changed($event)"></vfjs-gantt-ng>
    <button (click)="gantt.instance?.scrollToToday()">Today</button>
    <vfjs-scheduler-ng [data]="events" view="week" style="height: 500px"></vfjs-scheduler-ng>`,
})
export class AppComponent {
  tasks = [{ id: 1, name: 'Design', start: '2026-11-02', duration: 5 }];
  events = [];
  changed(e: unknown) { console.log(e); }
}

Link vibefox-js-gantt.css in angular.json (styles) or in index.html. For NgModule applications import VibeFoxJSGanttModule.

Svelte

<script>
  import { vfjsGantt, vfjsScheduler } from '@vibefox/js-gantt-svelte';
  let tasks = [{ id: 1, name: 'Design', start: '2026-11-02', duration: 5 }];
</script>
<div style="height: 400px" use:vfjsGantt={{ data: tasks, workdaysOnly: true }}
     on:vfjsgantt:taskChange={(e) => console.log(e.detail.changes)}></div>
<div style="height: 500px" use:vfjsScheduler={{ view: 'month' }}></div>

jQuery

<script src="jquery.min.js"></script>
<link rel="stylesheet" href="vibefox-js-gantt.css">
<script src="vibefox-js-gantt.global.js"></script>
<script src="vibefox-js-gantt-jquery.js"></script>
<script>
  $('#plan').vfjsGantt({ data: tasks, links })
    .on('vfjsgantt:taskChange', (e, payload) => console.log(payload.task));
  $('#plan').vfjsGantt('setZoom', 2);
  $('#calendar').vfjsScheduler({ view: 'month', data: events });
</script>

Core concepts

Data model of the Gantt

The Gantt takes three lists: data (tasks), links (dependencies) and resources. A task has an id, a name, dates and a parent; a task with children is a summary task whose dates come from its children.

  • Dates are Date objects, epoch milliseconds or strings: 'YYYY-MM-DD' for day tasks, 'YYYY-MM-DD HH:mm' for hour tasks.
  • The end of a day task is inclusive (the last working day); give either end or duration (days; working days with workdaysOnly, hours for hour tasks).
  • type: 'task', 'milestone' or 'summary'. progress: 0 to 100.
  • Your own fields are kept (notes, priority, cost and any other).

Methods and events return tasks in a public shape (GanttTask): dates as strings, end inclusive.

Data model of the Scheduler

The Scheduler takes a list of events (data): id, title, start and end ('YYYY-MM-DD HH:mm'; all-day events 'YYYY-MM-DD' with an inclusive end), allDay, color (a palette name such as 'blue', 'red', 'green', 'orange', 'purple', 'teal', 'pink', 'gray', or any CSS color), category, recurrence (rrule, exdate, rdate), timeZone, resource and your own fields.

Creating and destroying

const gantt = VibeFoxJSGantt.createGantt('#plan', { data: tasks, links });
gantt.setData(otherTasks);                 // replace the tasks
gantt.setOptions({ zoom: 2, showBaseline: true });
gantt.setOption('workdaysOnly', true);
gantt.destroy();

const calendar = VibeFoxJSGantt.createScheduler('#calendar', { view: 'month' });
calendar.setData(events);

new VibeFoxJSGantt(target, options) and new VibeFoxJSScheduler(target, options) are the same as the factories.

Events

Every event handler receives one payload object. Subscribe in the options (on: { taskChange: fn }) or later with on, once and off; on('*', (event, payload) => …) receives every event.

gantt.on('taskChange', (e) => save(e.task, e.changes, e.source)); // source: 'drag' | 'api' | 'cell' | 'editor' | ...
gantt.on('dependencyCreate', (e) => console.log(e.link));
calendar.on('eventChange', (e) => console.log(e.event, e.changes));

Every VibeFox JS component emits ready, dataChange, optionsChange, themeChange and destroy. Some events can be cancelled with preventDefault(): taskDblClick, contextMenu, cellEditStart, taskEditorOpen, syncStart. The full list is in API reference.

State snapshots

gantt.getState() returns a JSON-safe snapshot of the view: zoom, collapsed tasks, scroll, table width, column widths (columnWidths), style, selection, critical path / baseline / slack / load map switches, resources and the resource panel, calendars and holidays, constraints switches, sort, filter, search, view, progress line, status date, time zone, scenarios and the comparison. calendar.getState() has the view, date, scroll, style, resource, calendars, resources, time zones and timeline settings. setState(state) restores a snapshot (partial states are accepted).

localStorage.setItem('plan-view', JSON.stringify(gantt.getState()));
gantt.setState(JSON.parse(localStorage.getItem('plan-view')));

Undo and redo

Every change of tasks, links, resources, calendars and assignments is an undo step (the Gantt option historyLimit, default 100). Keys: Ctrl+Z, Ctrl+Y or Ctrl+Shift+Z. Methods: undo(), redo(); the Scheduler also has canUndo() and canRedo().

Tasks and links

Working with tasks

const task = gantt.addTask({ name: 'Testing', parent: 1, start: '2026-11-23', duration: 3 }, { after: 3 });
gantt.updateTask(task.id, { progress: 50, notes: 'QA team' });
gantt.removeTask(task.id);                // with its children and links
gantt.getTask(2); gantt.getTasks();       // public shape
gantt.getVisibleTasks();                  // rows as shown (filter, sort, collapsed)
gantt.indentTask(5); gantt.outdentTask(5);
gantt.toggleTask(1); gantt.expandTask(1); gantt.collapseTask(1); gantt.expandAll(); gantt.collapseAll();

Events: taskAdd, taskRemove, taskChange (changes lists the changed fields; cascaded = ids moved by automatic scheduling), progressChange, expandChange, selectionChange, taskClick, taskDblClick.

Links

A link connects two tasks: { from, to, type, lag, lagUnit }. Types: 'FS' (finish-to-start, default), 'SS', 'FF', 'SF'. lag is in days (working days with workdaysOnly) or hours (lagUnit: 'hour'); a negative lag is a lead. Cycles and duplicates are refused. Users create links by dragging from the dot at the end of a bar to another bar.

const link = gantt.addLink({ from: 2, to: 5, type: 'SS', lag: 2 }); // null for a cycle or a duplicate
gantt.getLinks();
gantt.removeLink(link.id);

Events: dependencyCreate, dependencyRemove.

Split tasks

A task can be split into work segments with breaks: give segments ([{ start, end | duration }, …]) or call splitTask(id, date, gap). mergeTaskSegments(id, index) joins breaks, getTaskSegments(id) and setTaskSegments(id, segments) read and set them. Users drag single segments on the timeline.

gantt.splitTask(3, '2026-11-12', 2);   // the rest starts 2 working days later

Scheduling

Automatic scheduling and working time

With autoSchedule: true (default) a moved or longer predecessor pushes its successors. workdaysOnly: true counts durations in working days and makes drags skip non-working days; workingDays lists the working weekdays (0 = Sunday, default Monday to Friday). scheduleProject({ compact }) schedules the whole plan again (one undo step) and returns the moved ids.

With workdaysOnly a day milestone is always on a working day of its calendar: after a task that ends on Friday (FS or FF link) it is on Monday (after a holiday: the next working day), and a milestone given on a day off (in the data, by updateTask, in the editor or by dragging) moves to the next working day. Milestones with a time keep their moment (for example the end of Friday, 17:00).

Hour tasks

A task with a time in start / end, or durationUnit: 'hour', is planned in hours within workHours (default ['08:00-12:00', '13:00-17:00']). The option durationUnit sets the default unit, snapMinutes (default 15) the drag step at the hour zoom, timeFormat (default 'HH:mm') the table format.

Constraints and deadlines

A constraint fixes a task in time: 'ASAP' (as soon as possible, default), 'ALAP' (as late as possible), 'SNET' / 'SNLT' (start no earlier / no later than), 'FNET' / 'FNLT' (finish no earlier / no later than), 'MSO' / 'MFO' (must start / finish on). A deadline does not move the task; a later finish is marked and counts as negative slack.

gantt.setConstraint(3, 'SNET', '2026-11-12');
gantt.setDeadline(4, '2026-11-30');
gantt.getConflicts();          // [{ task, kind: 'link' | 'constraint' | 'deadline', constraint, date, required, ... }]
gantt.getMissedDeadlines();

Options: honorConstraints (default true: a constraint wins over a link that wants a later start), moveConstraintOnDrag (default true), showConstraints (marks of constraints, deadlines and conflicts). The event constraintConflict reports new and resolved conflicts. Task fields: constraint (a type or { type, date }), constraintDate, deadline.

Critical path, slack and schedule health

showCriticalPath: true marks the tasks that decide the project end, showSlack: true shows the free time after each bar. getCriticalPath() returns { critical, slack } (slack in days by task id). getScheduleHealth() returns a score from 0 to 100 with the overdue tasks, violated links and tasks that should have started.

Calendars

The project calendar is workingDays + workHours + holidays, or a named calendar given with calendar. Named calendars (calendars) can inherit from each other and be assigned to tasks and resources.

VibeFoxJSGantt.createGantt('#plan', {
  data: tasks,
  workdaysOnly: true,
  calendars: [
    { id: 'office', name: 'Office', workingDays: [1, 2, 3, 4, 5], hours: ['09:00-13:00', '14:00-18:00'],
      dayHours: { 5: ['09:00-14:00'] },                 // short Friday
      holidays: ['2026-12-25', '01-01', { start: '2026-12-28', end: '2026-12-31', name: 'Winter break' }] },
    { id: 'night', parent: 'office', hours: ['22:00-24:00', '00:00-06:00'] },
  ],
  calendar: 'office',
});

Calendar fields: id, name, parent, workingDays, hours, dayHours (hours per weekday; [] = day off), holidays ('YYYY-MM-DD', 'MM-DD' every year, { date, name } or a range { start, end, name }), exceptions (working or non-working days and ranges with their own hours).

Methods: setCalendars(), getCalendars(), getCalendar(id), addCalendar(), updateCalendar(), removeCalendar(), setProjectCalendar(), setTaskCalendar(taskId, calendar), setResourceCalendar(resourceId, calendar), addHoliday(holiday, calendarId), removeHoliday(date, calendarId), getHolidays(), isWorkingDay(date, calendarId), isWorkingTime(date, calendarId), getWorkingTime(from, to, unit, calendarId), addWorkingTime(date, amount, unit, calendarId). Event: calendarChange.

Resources and leveling

Resources and assignments

Resources have an id, a name, a capacity (units per day, 100 = one full-time person), a color, an optional calendar and a rate (cost of one person-day). Tasks name their resources in resources: ids or { id, units } (50 = half time).

gantt.addResource({ id: 'kim', name: 'Kim', capacity: 100, rate: 400 });
gantt.assignResource(3, 'kim', 50);
gantt.unassignResource(3, 'kim');
gantt.getAssignments(3);                 // [{ task, resource, units }]
gantt.getResourceLoad('kim');            // { peak, work, overloaded, days: [{ date, units, percent, over, tasks }] }
gantt.getOverloads();                    // overloaded periods of every resource

Options: showResourceHistogram (a resource panel under the chart with a table and a load histogram), resourceColumns (default ['name', 'peak']; also 'capacity', 'tasks', 'work', 'calendar' or any resource field), resourceRowHeight, histogramHeight, highlightOverload, showResourceNames (names on the bars), showLoadMap (a workload strip under the timeline). Methods: setResources(), getResources(), getResource(), updateResource(), removeResource(). Events: resourcesChange, assignmentChange, resourceClick, overloadChange.

Resource leveling

levelResources(options) moves tasks so that no resource is overloaded and returns a report (moved tasks with the reason, unresolved overloads, the project end before and after); previewLeveling(options) shows the proposed dates as ghost bars first, applyPreview() applies them, clearPreview() drops them.

const report = gantt.previewLeveling({ withinSlack: false, allowSplit: true });
console.log(report.text, report.projectEnd);
gantt.applyPreview();

Options (also the defaults of the option leveling): withinSlack (default true: the project end stays), extendProject, allowSplit, priorityField (default 'priority', 0 to 1000, 1000 = never moved), moveStarted, resources, from, order ('standard' or 'priority'). Events: resourceLevel, previewChange.

Editing

Users drag bars to move them, drag the bar ends to change the dates, drag the progress handle, and drag from a bar's link dot to create a link. readOnly: true turns editing off.

  • Cell editing (cellEditing, default true; { columns } limits it): double click or F2 in the table. Methods editCell(id, field), cancelCellEdit(); events cellEditStart (cancelable), cellEdit.
  • Task editor (taskEditor, default true): a dialog with the tabs general, dates, resources, links, constraints, calendar, notes; your own fields with { tabs, fields: [{ field, label, type, tab, options }] }. Methods openTaskEditor(id, { tab }), closeTaskEditor(), isTaskEditorOpen(); events taskEditorOpen (cancelable), taskEditorClose.
  • Context menu (contextMenu, default true) on bars and rows. Your own items come after the built-in ones: { task: [...], row: [...], items(ctx, items), defaults }; an item has id, label, shortcut, danger, checked, disabled, hidden, divider, children, action(ctx, gantt). Methods showContextMenu(id, options), hideContextMenu(); events contextMenu (cancelable; items may be changed), contextMenuClose, menuItemClick.
contextMenu: {
  task: [{ id: 'mail', label: 'Send to owner', action: (ctx) => console.log('mail', ctx.task.name) }],
},
taskEditor: { fields: [{ field: 'owner', label: 'Owner', type: 'text', tab: 'general' }] }

Timeline and views

Zoom and scrolling

zoom: 0 hours, 1 days (default), 2 weeks, 3 months, 4 quarters. Methods setZoom(zoom), zoomIn(), zoomOut(), scrollToToday(), scrollToDate(date), scrollToTask(id); event zoomChange. scrollToDate() keeps the time of day: scrollToDate('2026-10-26 08:00') at the hour scale scrolls to 08:00 (a date without a time: to midnight).

The floating toolbar (toolbar, default true) has zoom, undo, the critical path switch, search, export and (optionally) the assistant field. It stands as a column at the end side of the chart when that column fits into the chart height and the chart is at least --vfjs-gantt-toolbar-column-min-width (360 px) wide. In a lower or narrower chart the toolbar is compact: one row in the header of the time scale (it covers no bars) with search or the assistant, zoom in, zoom out and today, plus a "More tools" button (⋯) whose menu holds the other buttons.

Table

columns chooses the table columns (default ['name', 'start', 'end', 'duration', 'progress']; also 'resources' and 'calendar'), showWBS numbers the tasks (1.2.3), gridWidth sets the table width, dateFormat (default 'YYYY-MM-DD') the date format. Users resize the table with the splitter and every column by its header edge.

A column is a field name or a column object { field, header, width, minWidth, resizable }; strings and objects can be mixed. header replaces the header text, width is in px (default: the CSS variable --vfjs-gantt-col-<field>-width), minWidth is the narrowest width of a resize (default --vfjs-gantt-col-min-width, 40 px), resizable: false removes the resize edge. The width a user gives wins over width, which wins over the CSS. Columns with their own widths and no gridWidth number make the table exactly as wide as the columns; with a gridWidth number a resize moves the splitter by the same amount. The name column fills a wider table. The PNG, PDF, print and Excel exports use the same widths and headers.

const gantt = VibeFoxJSGantt.createGantt('#plan', {
  data: tasks,
  columns: ['name', { field: 'start', header: 'From', width: 110, minWidth: 80 }, { field: 'duration', resizable: false }],
});
gantt.on('columnResize', (e) => console.log(e.field, e.width, e.source));   // 'drag' | 'keyboard' | 'menu' | 'api'
gantt.setColumnWidth('start', 140);     // null = back to the column / CSS width
console.log(gantt.getColumnWidths());   // { name: 230, start: 140, duration: 58 }

Users drag the end edge of a header cell (in RTL the left edge). Without dragging, a click on the edge or the context menu of a header opens the width menu ("Wider", "Narrower", "Default width"); the edge then has the focus: ← → change the width by one step, Enter or Space open the menu. With the keyboard only, the context menu of the table (Shift+F10 or the Menu key) has the submenu "Column width" with the same items for every column. The widths users give are part of getState() (columnWidths).

What the timeline shows

Options: showBaseline (planned dates of baselineStart / baselineEnd), showCriticalPath, showSlack, showLoadMap, weekendHighlight, todayLine, focusMode (a click on a task dims everything outside its dependency chain; also focusTask(id), clearFocus(), event focusChange), timeZone (zone of "now" for the today line and the status date).

Progress line, S-curve and PERT

showProgressLine: true draws a line from the status date (statusDate, default now) through the progress point of every task; getProgressLine(date) returns which tasks are behind or ahead. The option view switches the component between 'gantt', 'pert' (network of tasks with early / late dates and slack) and 'scurve' (planned, scheduled and actual progress in percent).

gantt.setStatusDate('2026-11-16');
gantt.setView('scurve');                         // or the option view
const curve = gantt.getSCurve({ weight: 'work', step: 'week' });
console.log(curve.atStatus.spi);
const pert = gantt.getPertData();                // nodes with es, ef, ls, lf, slack, critical
const view = gantt.createPertView('#network');   // a separate PERT view in another element

Methods: setStatusDate(), getStatusDate(), getProgressLine(), getSCurve(), getPertData(), setView(), getView(), createPertView(target), createSCurveView(target, options) (a view object with refresh(), getImage(), exportPNG(), getPDF(), exportPDF(), print(), destroy()). The option scurve sets weight ('duration', 'work', 'count' or a function), step, from, to. Events: viewChange, statusDateChange.

Filter, sort and search

gantt.setFilter({ progress: { max: 99 }, name: /api/i });          // all conditions must match
gantt.setFilter((task) => task.resources?.some((r) => r.id === 'ann'), { showAncestors: true });
gantt.clearFilter();
gantt.setSort('start', 'desc');                                    // or [{ field, dir }], or a compare function
gantt.clearSort();
const ids = gantt.search('review', { fields: ['name', 'notes'], filter: false });
gantt.searchNext(); gantt.searchPrev(); gantt.clearSearch();

A filter object maps fields to conditions: a value, a regular expression, a list, { min, max } or a function. Ancestors of matching tasks stay as context rows (showAncestors, showDescendants). A click on a table header sorts (sortable); the toolbar has a search field (searchBox). Events: filterChange, sortChange, searchChange.

What-if scenarios

A scenario is a copy of the plan that you can change without touching the main plan, compare with it, and apply.

const s = gantt.createScenario('Two more developers', { activate: true });
gantt.updateTask(3, { duration: 6 });                 // changes the active scenario
const diff = gantt.compareScenario(s.id);             // ghost bars of the main plan
console.log(diff.projectEndDelta, diff.costDelta);
gantt.setActiveScenario(null);                        // back to the main plan
gantt.applyScenario(s.id, { remove: true });          // make it the main plan

Methods: createScenario(name, { from, activate }), getScenarios(), getScenario(id), renameScenario(), removeScenario(), setActiveScenario(id), getActiveScenario(), compareScenario(id, options), getComparison(), clearComparison(), applyScenario(). Compare options: against, show, onlyChanged, all, cost. The cost of a task is its cost field plus person-days × the resource rate. Events: scenarioChange, compareChange. Scenarios are part of getState().

Export and import

PDF and printing

await gantt.exportPDF('plan.pdf', { pageSize: 'A3', fit: 'width', title: 'Website plan' });
const bytes = await gantt.getPDF({ range: { start: '2026-11-01', end: '2026-12-31' } });
await gantt.print({ orientation: 'landscape' });
gantt.getPrintLayout({ pageSize: 'A4' });     // the pages without drawing

The pages are vector drawings: the table is repeated on every page, links, the critical path, baselines and the resource panel are included. Options (GanttPdfOptions): pageSize, orientation (default 'landscape'), margin, scale, fit ('width', 'page' or null), range, table, tableWidth, repeatTable, resources, header, title, footer, pageNumbers, pageOrder, pages, dateFormat, author, subject, embedFonts; view: 'pert' | 'scurve' exports those views. Text outside the standard PDF fonts stays selectable; to show it in your font, pass your font files with embedFonts (.ttf, .otf or .woff). With a font that has the letters, Arabic, Hebrew and Hindi text is written as on the screen: right to left where needed, Arabic letters joined, Devanagari syllables built. The library ships no fonts.

Image, CSV and Excel

gantt.exportPNG('plan.png', { table: true, resources: true });
const canvas = gantt.getImage();
gantt.exportCSV('plan.csv');
await gantt.exportXlsx('plan.xlsx', { timeline: 'week', outline: true });

Excel options (GanttXlsxOptions): name, rows ('all' or 'view'), columns, timeline ('day', 'week', 'month': one column per period with the bars as filled cells), outline (Excel groups by WBS level), dateFormat, dateTimeFormat, sheets ('tasks', 'links', 'resources'), extraSheets, creator. getXlsxSheet() and getXlsx() return the sheet / the bytes.

MS Project XML

const xml = gantt.exportMSProject('plan.xml', { title: 'Website' });   // downloads, returns the XML
const result = await gantt.importMSProject(xml, { calendars: true });   // text, a File, a Blob or bytes
console.log(result.tasks, result.warnings);

The XML is the MS Project interchange format (MSPDI): tasks, links, resources, assignments, calendars, constraints, baselines. getMSProjectXML() returns the text without a download. Without a component: parseMSProjectXML(xml) returns a plan in the shape of the Gantt options, buildMSProjectXML(plan, options) writes one (both run in Node too). Events: export, import.

Server synchronization

The CRUD manager sends the changes of a Gantt and / or a Scheduler to your server in batches and applies the answers. Use the option crud, or createCrudManager(target, options) for several components.

const gantt = VibeFoxJSGantt.createGantt('#plan', {
  crud: { url: '/api/plan', autoLoad: true, headers: { Authorization: 'Bearer ' + token } },
});
gantt.getCrudManager().on('syncStatusChange', (e) => console.log(e.status)); // idle, unsaved, saving, saved, offline, error, conflict

Protocol: load() requests loadUrl (or url) and expects { tasks: { rows }, dependencies: { rows }, resources: { rows }, assignments: { rows } } (Scheduler: events). A sync posts { type: 'sync', requestId, revision, tasks: { added, updated, removed }, … }; added records carry a temporary id in $PhantomId, and the answer { success, revision, tasks: { rows: [{ $PhantomId, id, … }] } } replaces it with the server id everywhere (references, selection, undo history; event idChange).

Options (CrudManagerOptions): url, loadUrl, syncUrl, method (POST), loadMethod (GET), headers, credentials, transport (your own function instead of fetch), autoSync (default true), autoSyncDelay (800 ms), autoLoad, writeAllFields, phantomIdField, versionField (default 'version'), assignments, stores (your own stores), conflict ('ask', 'overwrite', 'accept', 'merge' or a function), mergePrefer, retry, timeout, useETag, storageKey (your own localStorage key for the offline queue), restore, indicator, warnOnUnload.

Conflicts (409, or 412 with an ETag) emit syncConflict with the local, base and server records; call resolve('overwrite' | 'accept' | 'merge'). Network errors, timeouts, 408, 429 and 5xx are retried; offline changes wait for the connection. Methods: load(), sync(), getChanges(), hasChanges(), getStatus(), applyChanges(changes, { server }) (server push), acceptChanges(), rejectChanges(), getQueuedChanges(), setAutoSync(), attach(), detach(), destroy(). Events: syncStatusChange, syncStart, syncEnd, syncFail, syncConflict, idChange, load, loadFail, queueRestore (also emitted on the attached components). Errors are CrudError objects with status.

Assistant

The Gantt understands commands in English and Russian: move, shift, rename, add or remove tasks, change durations and progress, link tasks, assign resources, set deadlines and constraints, level resources, show the critical path, zoom, and questions such as overloads, late tasks or the project end. The built-in rules need no network and no model. Change commands are shown as a preview (ghost bars) and wait for confirmation.

const r = await gantt.ask('move Build by 2 days');     // a preview
console.log(r.text, r.commands);                       // [{ action: 'shiftTask', task: 3, amount: 2, unit: 'day' }]
gantt.confirmAssistant();                              // or cancelAssistant()
await gantt.ask('add task Testing 3 days after Build', { apply: true });
gantt.runCommands([{ action: 'setProgress', task: 2, progress: 100 }], { apply: true });

The option assistant: true (or { input, resolve, mode, autoApply, contextLimit, placeholder }) adds a field to the toolbar. Methods: ask(text, { apply }), parseCommand(text) (commands only), runCommands(commands, { apply }), confirmAssistant(), cancelAssistant(), getAssistantSchema(), getAssistantContext(). Events: assistantCommand, assistantReply, previewChange. parseAssistantText(text, context) is the rule parser without a component.

Your own language model

The Gantt never calls a model or a service itself. assistant.resolve(text, context) receives the phrases the rules do not understand (with mode: 'llm': every phrase) and the plan (context: tasks, resources, links, the selected task, schema); return commands in the format of ASSISTANT_SCHEMA, { commands, reply } or a plain text.

assistant: {
  async resolve(text, context) {
    const res = await fetch('/api/my-llm', { method: 'POST', body: JSON.stringify({ text, tasks: context.tasks, schema: context.schema }) });
    return res.json(); // { commands: [...], reply: '...' }
  },
}

Large plans

With virtualize: true (default) only the visible rows and the visible part of the timeline are rendered, so plans with tens of thousands of tasks stay responsive (an edit with automatic scheduling on 50 000 tasks takes about 50 ms). The PERT view of a very large plan is computed only while it is shown.

Scheduler: views and events

Views and navigation

Views: 'month', 'week' (default), 'day', 'agenda' (agendaDays days ahead, default 30), 'year' and 'timeline' (resources). The toolbar (toolbar) has the period buttons, the view buttons (views limits them) and the quick-add field.

calendar.setView('month');
calendar.setDate('2026-12-01');
calendar.next(); calendar.prev(); calendar.today();
calendar.getView(); calendar.getDate();

Options: date (anchor date, default today), firstDay (default 1 = Monday), dayStart / dayEnd (visible hours, default 7 to 22), workHours (default [9, 18]), workingDays, hourHeight, showNowLine, showHeat (a heat map of busy days in the month view), categories (category → color), defaultColor. Events: viewChange, dateChange, rangeChange.

Events

const ev = calendar.addEvent({ title: 'Demo', start: '2026-11-05 10:00', end: '2026-11-05 11:00', category: 'client' });
calendar.updateEvent(ev.id, { title: 'Demo for ACME' });
calendar.removeEvent(ev.id);
calendar.getEvent(ev.id);
calendar.getEvents();                              // all events
calendar.getEvents('2026-11-01', '2026-12-01');    // occurrences of a range (recurrences expanded)
calendar.openEditor(ev.id);

With editable: true (default) users create events by dragging in an empty slot, move and resize them, and edit them in a popup. snapMinutes (default 30) is the drag step, autoScroll scrolls near the edges. Events: eventClick, eventCreate, eventChange (source: 'drag', 'api' or 'keyboard'), eventRemove.

Quick add, free slots and conflicts

calendar.quickAdd('Call Bob 14:00-15:30 #red');      // an event on the anchor day (no time = all day)
calendar.findFreeSlot(60, { from: '2026-11-04', withinDays: 5 }); // { start, end } within the working hours
calendar.getConflicts();                               // overlapping pairs in the visible range

Options: quickAdd (the toolbar field), showConflicts (badges on overlapping events).

Scheduler: recurrence and time zones

Recurring events

rrule is a recurrence rule of RFC 5545 as text ('FREQ=MONTHLY;BYDAY=2MO;COUNT=10') or as an object ({ freq, interval, count, until, byDay, byMonthDay, byMonth, byYearDay, byWeekNo, byHour, byMinute, bySetPos, wkst }). exdate removes occurrences, rdate adds them. The simple form recur: 'daily' | 'weekly' | 'monthly' | 'yearly' with until works too. The event popup has a rule editor (every N days / weeks / months / years, weekdays, "on the 2nd Monday", end after N times or on a date).

calendar.addEvent({ title: 'Board', start: '2026-11-09 10:00', end: '2026-11-09 12:00',
  rrule: { freq: 'monthly', byDay: '2MO', count: 10 } });
calendar.updateOccurrence('board-id', '2026-12-14 10:00', { start: '2026-12-15 10:00', end: '2026-12-15 12:00' }, 'this');
calendar.removeOccurrence('board-id', '2027-01-11 10:00', 'following');
calendar.getOccurrences('board-id');

A change of a recurring event applies to 'this' occurrence, 'following' ones or 'all'; recurrenceEditMode: 'ask' (default) asks the user. A changed occurrence is stored as an event with recurringEventId and recurrenceId.

Time zones

timeZone is the display zone (an IANA name such as 'Europe/Berlin', or 'UTC'; default: the browser's zone). An event may have its own timeZone; its times are shown in the display zone. secondTimeZone adds a second hour scale in the week and day views.

Scheduler: resources and timeline

Resources (resources) have an id, a name, a color, a calendar (the calendar format of the Gantt) and unavailable times. Events name them in resource (one id or a list). The option resource shows the calendar and the events of one resource.

const calendar = VibeFoxJSGantt.createScheduler('#calendar', {
  view: 'timeline', timelineScale: 'week', resourceGroupBy: 'team',
  resources: [
    { id: 'r1', name: 'Room A', team: 'Rooms' },
    { id: 'ann', name: 'Ann', team: 'People', unavailable: [{ start: '2026-11-06', name: 'Vacation' }] },
  ],
  data: [{ id: 1, title: 'Workshop', start: '2026-11-04 10:00', end: '2026-11-04 12:00', resource: ['r1', 'ann'] }],
});
calendar.isResourceAvailable('ann', '2026-11-06 09:00', '2026-11-06 10:00'); // false
calendar.getAvailabilityConflicts();

The timeline view has one row per resource: timelineScale ('day', 'week', 'month'), timelineSnapMinutes, resourceGroupBy (a field or a function), collapsedGroups, showUnassigned. verticalResources: true shows one column per resource under every day in the week and day views. Methods: setResources(), getResources(), setTimelineScale(), getTimelineScale(), setResourceGroupBy(), toggleResourceGroup(), getCollapsedGroups(), scrollToResource(). Events: resourcesChange, timelineScaleChange, resourceGroupToggle, resourceClick.

Calendars shared with a Gantt

The Scheduler has the calendar options of the Gantt (calendars, calendar, holidays) and their methods (setCalendars, getCalendars, getCalendar, setProjectCalendar, addHoliday, removeHoliday, getHolidays, isWorkingDay, isWorkingTime). calendar.useGanttCalendars(gantt, { follow: true, resources: true }) copies the calendars and resources of a Gantt and keeps following its changes.

Scheduler: import, export and printing

calendar.exportICS('team.ics');                  // iCalendar file with the recurrence rules
const text = calendar.getICS();
const result = await calendar.importICS(file, { mode: 'merge' });   // 'replace' (default) or 'merge'
calendar.exportCSV('events.csv');
calendar.exportPNG('week.png', { view: 'week' });
await calendar.exportPDF('november.pdf', { view: 'month', pageSize: 'A4' });
await calendar.print({ view: 'agenda' });

The import reads events, all-day events, recurrence rules, exceptions, time zones and modified occurrences; unsupported parts are listed in warnings. parseICS(text, { timeZone }) reads a file without a component (Node too). PDF options (SchedulerPdfOptions): view, pageSize, orientation, margin, scale, fit, header, title, footer, pageNumbers, pageOrder, pages, author, subject, embedFonts; getPrintLayout() and getPDF() return the layout and the bytes, getImage() a canvas. Events: export, import.

Theming and styling

Themes

Every VibeFox JS component has the themes light (default), dark and high-contrast built into its CSS file. The optional vibefox-js-themes.css adds the theme pack: high-contrast-light, paper, paper-dark, glass, glass-dark, classic, classic-dark, ocean, ocean-dark, forest, forest-dark, sunset, sunset-dark, graphite, graphite-dark. The same file works for every VibeFox JS library.

VibeFoxJSGantt.setTheme('dark');                 // the whole page
VibeFoxJSGantt.setTheme('ocean', '#sidebar');    // every component inside a container
gantt.setTheme('glass');                    // one component (also: the theme option)
gantt.setTheme(null);                       // follow the page / container again

A component without its own theme follows the nearest container with a theme, then the page. After setTheme(name, container) the theme variables are set on the container itself too, so your CSS of the container can use them (#sidebar { background: var(--vfjs-bg); }). Your own theme: registerTheme(name, vars) with the theme variables (bg, fg, border, accent, accent-fg, muted, surface, radius, font, shadow, palette-0 … palette-9 and any other token); it applies at once to every component that uses it. getTheme() returns the page theme, themes lists the registered ones; the event themeChange reports a switch.

VibeFoxJSGantt.registerTheme('brand', { accent: '#e11d48', 'accent-fg': '#ffffff', radius: '10px' });
gantt.setTheme('brand');

CSS variables

Every color, size, spacing, font, radius, shadow and duration of VibeFox JS Gantt is a CSS variable, so any setting is changed in one place. There are three levels:

  • theme variables shared by all VibeFox JS components: --vfjs-bg, --vfjs-fg, --vfjs-border, --vfjs-accent, --vfjs-accent-fg, --vfjs-muted, --vfjs-surface, --vfjs-radius, --vfjs-font, --vfjs-shadow, --vfjs-palette-0 … --vfjs-palette-9;
  • design tokens: spacing --vfjs-space-1 … --vfjs-space-8, font sizes --vfjs-font-size, --vfjs-font-size-sm and others, radii --vfjs-radius-sm …, status colors --vfjs-danger, --vfjs-success, --vfjs-warning, --vfjs-info, the scale --vfjs-size-unit, durations --vfjs-motion-duration, the focus ring --vfjs-focus-ring-color and --vfjs-focus-ring-width;
  • variables of the library, --vfjs-gantt-*, which default to the tokens above.
/* all VibeFox JS components of the page */
.vfjs { --vfjs-accent: #0f766e; --vfjs-radius: 4px; }
/* only this gantt */
#orders {
  --vfjs-gantt-row-height: 36px;
  --vfjs-gantt-header-bg: #eef2ff;
  --vfjs-gantt-row-selected-bg: #dbeafe;
}

Main groups of the Gantt variables: frame (--vfjs-gantt-bg, --vfjs-gantt-fg, --vfjs-gantt-font, --vfjs-gantt-font-size, --vfjs-gantt-border), header and time scale (--vfjs-gantt-header-bg, --vfjs-gantt-scale-fg), rows (--vfjs-gantt-row-height, --vfjs-gantt-row-alt-bg, --vfjs-gantt-row-selected-bg), table (--vfjs-gantt-grid-width, --vfjs-gantt-table-bg, --vfjs-gantt-indent), bars (--vfjs-gantt-bar-bg, --vfjs-gantt-bar-height, --vfjs-gantt-bar-radius, --vfjs-gantt-progress), milestones and summaries (--vfjs-gantt-milestone, --vfjs-gantt-summary), critical path (--vfjs-gantt-critical), baseline and slack (--vfjs-gantt-baseline, --vfjs-gantt-slack), links (--vfjs-gantt-link, --vfjs-gantt-link-width), weekend, holidays and today (--vfjs-gantt-weekend, --vfjs-gantt-holiday, --vfjs-gantt-today), resource panel (--vfjs-gantt-res-row-height, --vfjs-gantt-res-bar), table columns (--vfjs-gantt-col-<field>-width, --vfjs-gantt-col-min-width, --vfjs-gantt-col-resizer-width, --vfjs-gantt-col-resizer-bg), toolbar (--vfjs-gantt-toolbar-column-min-width). The Scheduler variables start with --vfjs-sched-: --vfjs-sched-hour-height, --vfjs-sched-event-radius, --vfjs-sched-today-bg, and the event palette --vfjs-sched-color-blue … --vfjs-sched-color-gray.

The variables can also be set in the style attribute of the component element, before or after createGantt() / createScheduler(): <div id="plan" style="--vfjs-gantt-row-height: 40px"> or el.style.setProperty('--vfjs-gantt-row-height', '40px'). An option with a value (rowHeight, resourceRowHeight, the Scheduler hourHeight) wins over the variable; when the option goes back to null or the component is destroyed, your value is in effect again.

Where to set them: on :root, on any container of your page (#checkout { --vfjs-accent: #0f766e; }), on the element of the component, or in a theme (registerTheme). The closest value wins; a component with its own theme (the option theme or component.setTheme(name)) keeps the theme variables of that theme even inside a container that sets them. A container inside another component (a form inside a dialog or a card) passes the variables of the library to the components in it as well. Only the shared design tokens (--vfjs-space, --vfjs-danger, --vfjs-selected-bg …) do not pass there: set them on a container outside the outer component or on the nested components themselves (#form .vfjs { … }). Popups, menus and dialogs placed in <body> take the values set on the page (:root), not those of the container of their component.

Default values: the theme variables are registered with @property (their initial value is the light theme), so they have a value on every element of the page. The variables of the library (--vfjs-gantt-*) keep their defaults inside the stylesheet, at the place where they are used, so a variable that you did not set has no value on your elements:

  • in your own CSS that uses a variable of the library, give it a fallback as the library does: var(--vfjs-gantt-bg, var(--vfjs-bg)), or use a theme variable directly;
  • from JavaScript, read the current value with cssVar(element, '--vfjs-gantt-row-height') (exported by the library; it also returns the default value the component computes); getComputedStyle(element).getPropertyValue() can return an empty string for a variable of the library that nobody set.
/* your own element in the colors of the component */
.my-summary { background: var(--vfjs-gantt-bg, var(--vfjs-bg)); color: var(--vfjs-fg); }
const el = document.querySelector('#orders');
console.log(VibeFoxJSGantt.cssVar(el, '--vfjs-gantt-row-height'));                    // the value in use (also a default)
console.log(getComputedStyle(el).getPropertyValue('--vfjs-gantt-row-height'));  // can be '' unless you set it

If the CSS file of the library comes from another origin without CORS (a <link> without the crossorigin attribute), the browser does not let scripts read the stylesheet, and cssVar() returns an empty string for a variable without a value on the root of the component. From your own origin, or with that attribute, it works.

--vfjs-gantt-search-mark-fg defaults to inherit (the color of the text around it), and cssVar() returns inherit.

The stylesheets are written with native CSS nesting; nothing changes for including them, and your own CSS can be written in any form.

Ready-made styles

The option style (the prop variant in the framework wrappers) of the Gantt and the Scheduler picks a ready-made look; every style works with every theme and density. GANTT_STYLES lists the names.

StyleLook
'classic'The default look.
'flat'Flat bars without shadows, light lines.
'contrast'Strong lines and colors.
'compact'Smaller rows (26 px) and hours (32 px).
'rounded'Rounded bars and events.

The style is the class vfjs-gantt-style-<name> on the component element or on any container; any other name uses your own CSS for that class.

Density and size

Set data-vfjs-density="compact", "normal" or "comfortable" on the page or on any container: heights and paddings of every VibeFox JS component inside follow. --vfjs-size-unit (default 1px) scales all sizes of a component at once, for example #orders { --vfjs-size-unit: 1.25px; }. Sizes you give as numbers in options are pixels and are not scaled.

Default height: when the element of the component has no height of its own, it gets the class vfjs-auto-height and a default height from the variable --vfjs-gantt-min-height (the Scheduler: --vfjs-sched-min-height, the same value by default and growing with its content; 400 px × --vfjs-size-unit). An element with a height of its own (height, only a min-height, a flex item or a CSS Grid item, height: 100% of a parent with a height, absolute insets) gets the class vfjs-fit and is filled exactly, also when it is smaller; the content never makes it taller. With the variable at 0 (class vfjs-content-height) the Gantt is as high as all its rows, without scrolling of its own; without a height of its element the Scheduler is as high as its content, at least --vfjs-sched-min-height.

Your own CSS

All library rules are inside the cascade layer @layer vfjs, so your own CSS always wins without !important. The class names of VibeFox JS Gantt start with vfjs-gantt- (the Scheduler: vfjs-sched-), so other CSS frameworks on the page do not restyle it.

.vfjs-gantt-bar.vfjs-gantt-critical { outline: 2px solid #b91c1c; }
.vfjs-sched-event { font-weight: 600; }

The library ships no font files. It uses the system font stacks of the tokens --vfjs-font, --vfjs-font-mono and --vfjs-font-serif; set them to your own fonts if you want. Animations follow prefers-reduced-motion, and colors follow forced-colors mode (Windows high contrast).

Localization and RTL

Languages

VibeFox JS Gantt comes with 14 interface languages. English (en) is built into the library file; each of the others is a language file of its own (dist/locales/vibefox-js-gantt.<lang>.js in the package), and a page loads only the ones it uses: Russian (ru), Spanish (es), German (de), French (fr), Italian (it), Portuguese (Brazilian) (pt), Ukrainian (uk), Turkish (tr), Chinese (Simplified) (zh), Japanese (ja), Korean (ko), Hindi (hi) and Arabic (ar). The locale option sets the language of one component; setLocale(lang) sets the default language of the page, which every component without its own locale follows (it re-renders on a change).

VibeFoxJSGantt.setLocale('ru');                                  // page default
const gantt = VibeFoxJSGantt.createGantt('#app', { data: tasks, locale: 'en' }); // this gantt only
gantt.setOptions({ locale: 'de' });

The example above needs the files of the languages it uses. With script tags, load a language file after the library. The order matters: loaded first, the file adds no language and writes a warning to the console.

<link rel="stylesheet" href="vibefox-js-gantt.css">
<script src="vibefox-js-gantt.global.min.js"></script>
<script src="locales/vibefox-js-gantt.ru.js"></script>

With npm or a bundler, import the language after the library. Without npm, an ES module page imports ./locales/vibefox-js-gantt.ru.esm.js, which registers the language in vibefox-js-gantt.esm.js.

import { createGantt } from '@vibefox/js-gantt';
import '@vibefox/js-gantt/locales/ru';

The .esm.js language file does not fit the minified build @vibefox/js-gantt/min (it would load a second copy of the library). There, use the .json file:

import { createGantt, addLocale } from '@vibefox/js-gantt/min';
import ru from '@vibefox/js-gantt/locales/ru.json';
addLocale('ru', ru);

Without its file, locale: 'ru' shows English and writes one warning to the console.

Language codes: uk, ko, zh and pt are the real codes; ua and kr also work, as aliases of uk and ko. For each string the library tries the exact code, then the alias, the base language (pt-BR → pt, zh-CN → zh), English, and finally the key itself. normalizeLocale(code) returns the real code of an alias.

A language does not set the direction: with locale: 'ar', also set rtl: true or dir="rtl" on the container.

Adding a language

addLocale(lang, dictionary) adds strings to a language (and creates it): a language of your own, or your own wording over a language file. A missing key follows the chain above, so a partial dictionary works; addLocale('ua', …) fills uk. Add the dictionary before the components that use it are created, or switch the locale afterwards.

VibeFoxJSGantt.addLocale('de', {
  ganttToday: 'Heute',
  ganttTask: 'Vorgang',
});

The keys of VibeFox JS Gantt are camel-case names with the prefix gantt (Gantt, for example ganttToday), sched (Scheduler) and rr (the recurrence rule editor), about 360 keys: table headers, toolbar, menus, the task editor, the assistant, screen reader texts. The language files list every key (locales/vibefox-js-gantt.ru.json); the English texts are in the readable file vibefox-js-gantt.esm.js. Placeholders in braces, such as {n}, are filled in by the library. t(key, params) translates a key in the page locale, gantt.t(key) in the component's locale; getLocale() returns the page locale, onLocaleChange(fn) reports changes.

Plural forms: a text with a number has the keys <key>.zero, .one, .two, .few, .many and .other (the categories of Intl.PluralRules); .other is the fallback, so your dictionary can give only that form. {count} and {n} are filled in. tPlural(key, count, params, lang) picks the form; the method gantt.tPlural(key, count, params) does it in the locale of the component.

VibeFoxJSGantt.addLocale('de', {
  'schedEventsCount.one': '{n} Termin',
  'schedEventsCount.other': '{n} Termine',
});
VibeFoxJSGantt.tPlural('schedEventsCount', 5, {}, 'de');  // '5 Termine'

Week days, month names and the first day of the week follow the component locale; the assistant understands English and Russian phrases whatever language files are loaded. Dates in the data are always YYYY-MM-DD / YYYY-MM-DD HH:mm, whatever the locale; dateFormat and timeFormat set how the table shows them.

Right-to-left

The option rtl: true lays the component out right-to-left (dir="rtl" on its element); rtl: false forces left-to-right; without it the component follows the page or its container (<html dir="rtl">). The arrow keys follow the reading order. isRtl(element) tells the direction of an element.

In VibeFox JS Gantt the timeline runs from right to left, the table is on the right, the arrow keys on the bars follow the reading order, and the PNG, PDF and print exports are mirrored too. The Scheduler mirrors its views in the same way.

Accessibility

The task table of the Gantt is an ARIA tree grid and the timeline is a keyboard-operable chart; the Scheduler makes every event a focusable button. Screen readers get roles, names, states and announcements. Focus is visible (the focus ring is the CSS variables --vfjs-focus-ring-color, --vfjs-focus-ring-width, --vfjs-focus-ring-offset, --vfjs-focus-ring-style); dialogs keep the focus inside and give it back when they close. The high-contrast and high-contrast-light themes, forced-colors mode and prefers-reduced-motion are supported.

Keyboard

The table and the timeline are two tab stops. keyboard: false turns the keys off (Gantt and Scheduler). On macOS, Cmd works where Ctrl is listed.

Gantt: task table

KeysAction
↑ ↓, Home, End, PageUp, PageDownMove between tasks.
→Expand, then go to the first child.
←Collapse, then go to the parent.
EnterOpen the task editor.
F2Edit the name.
Shift+F10, Menu keyContext menu; its submenu "Column width" changes the width of a column.
DeleteRemove the selected task.
Ctrl+Z, Ctrl+YUndo / redo.
EscLeave focus mode.

Gantt: timeline

KeysAction
↑ ↓, Home, EndAnother task.
← →Move the task by one step of the scale (hour, day, week, month, quarter).
Alt+← →Move by the finest step (a day, or snapMinutes for hour tasks).
Shift+← →Change the end.
Alt+Shift+← →Change the start.
LLink mode: ↑ ↓ choose the successor, T changes the type (FS, SS, FF, SF), Enter creates the link, Esc cancels.
Enter, F2, Shift+F10As in the table.

Scheduler

KeysAction
TabTo the next event.
Enter, SpaceOpen the event.
Delete, BackspaceRemove the event (a recurring event asks which occurrences).
↑ ↓ (week, day)Move by snapMinutes.
← → (week, day, month)Move by a day; month view ↑ ↓ by a week.
← → / ↑ ↓ (timeline)Move by the timeline step / to the resource above or below.
Shift+arrowsChange the end.
Home, EndFirst / last event.
Ctrl+Z, Ctrl+YUndo / redo.

Screen readers

Gantt: the table has the role treegrid with aria-level, aria-expanded, aria-selected, aria-rowindex and aria-rowcount (virtual rows announce their real position); the current row is aria-activedescendant; bars are buttons named by title and kind. Moved dates, expanded rows and links are announced through a live region. ariaLabel sets the accessible name of the table (default: "Tasks"). Scheduler: the view is a named region, every event a button named by title, date, times, resource and "recurring".

Focus rings of the parts: --vfjs-gantt-focus-ring-color and the related variables, --vfjs-sched-focus-ring-color. The library also exports the helpers it uses itself: announce(message), trapFocus, rovingFocus, setAria, prefersReducedMotion() and others (see API reference).

Using with other VibeFox JS libraries

VibeFox JS Gantt works on its own. Every VibeFox JS library is a separate file with its own copy of the shared core, and several libraries on one page work together without conflicts: one global variable per library (VibeFoxJSGantt, VibeFoxJSCharts, …), class names with the library prefix, one page theme, the same events.

Connecting components with link()

link(source, event, target, method, transform) calls a method of one component whenever another emits an event; it returns a function that removes the link. connect(source, event, handler) subscribes and returns an unsubscribe function. bus is a page-wide event channel shared by all VibeFox JS libraries on the page.

// the selected task fills a table of VibeFox JS Grid (both files loaded on the page)
const unlink = VibeFoxJSGantt.link(gantt, 'selectionChange', grid, 'setData', (e) => (e.task ? [e.task] : []));
VibeFoxJSGantt.bus.emit('plan:saved', { at: Date.now() });   // any library can listen: VibeFoxJSGrid.bus.on('plan:saved', fn)

What uses another library when it is on the page

  • PDF, printing, PNG, Excel and MS Project export work on their own; no other library is needed.
  • Gantt and Scheduler are in the same library: useGanttCalendars() connects them.

AI tools

The library describes its main actions as tools for function calling with a language model. It never calls a model or a service itself: you send the descriptions to your model and run the calls it asks for.

ToolWhat it does
gantt_get_planThe plan: tasks, resources, links, the selected task.
gantt_commandsRuns assistant commands (ASSISTANT_SCHEMA) as one undo step, or as a preview.
const { describeTools, callTool, createToolKit } = VibeFoxJSGantt;
const tools = describeTools(gantt, { format: 'openai' });   // 'plain' / 'anthropic', 'openai', 'webmcp'
const result = await callTool(gantt, 'gantt_get_plan', {}); // { ok: true, result } or { ok: false, error }
const kit = createToolKit({ plan: gantt });               // tool names get the prefix 'plan_'
const answer = await kit.ask('Which tasks are late?', {
  format: 'anthropic',
  model: async (request) => (await fetch('/api/llm', { method: 'POST', body: JSON.stringify(request.body) })).json(),
});

callTool checks the arguments against the tool schema before it runs and never throws for bad input. createToolKit(components, { webmcp, readOnly }) joins the tools of several components (also of other VibeFox JS libraries) under unique names; kit.ask(prompt, { model, format, system, maxSteps, signal, onToolCall }) runs the loop "model → tool calls → results" with your model function; kit.registerWebMCP() registers the tools in the browser's navigator.modelContext where available. registerTools(target, provider) adds your own tools; validateSchema(value, schema) is the schema check.

The tools are registered for the Gantt; the Scheduler has none.

API reference

Exports

Library: createGantt, VibeFoxJSGantt, createScheduler, VibeFoxJSScheduler, createCrudManager, CrudManager, CrudError, parseMSProjectXML, buildMSProjectXML, parseICS, parseAssistantText, ASSISTANT_SCHEMA, GANTT_STYLES.

Shared core (the same in every VibeFox JS library): setTheme, getTheme, registerTheme, themes, tokens, componentTokens, densities, cssVar, cssColor, cssLength, observeTokens, setLocale, getLocale, addLocale, normalizeLocale, t, tPlural, withLocale, onLocaleChange, link, connect, bus, Emitter, VibeFoxJSComponent, factory, toCSV, downloadFile, downloadCanvasPNG, createXlsx, readXlsx, XLSX_MIME, createZip, readZip, crc32, createVectorContext, VectorContext, vectorToSVG, vectorToPDF, printSVG, createVectorImage, loadVectorImage, SVG_MIME, PDF_MIME, PDF_PAGE_SIZES, describeTools, callTool, createToolKit, registerTools, validateSchema, announce, trapFocus, rovingFocus, getFocusable, focusFirst, saveFocus, setAria, ensureId, addAriaRef, removeAriaRef, isRtl, mirrorArrow, prefersReducedMotion, prefersHighContrast, motionDuration, onPreferenceChange, injectStyles, ensureBaseStyles, formatNumber, formatDate, escapeHtml, createEl, deepMerge, isPlainObject, getPath, setPath, uid, clamp, debounce, throttle, VERSION.

Gantt options

Also every VibeFox JS component accepts theme, locale, rtl and on (see Core concepts).

OptionTypeDefaultDescription
datatask[][]Tasks.
linkslink[][]Dependencies.
columnsarray of strings or column objects { field, header, width, minWidth, resizable }['name', 'start', 'end', 'duration', 'progress']Table columns.
showWBSbooleantrueWBS numbers in the name column.
rowHeightnumber or nullnullRow height; null = --vfjs-gantt-row-height (34 px).
stylestring or nullnullReady-made style.
zoom0–41Hours, days, weeks, months, quarters.
gridWidthnumber or nullnullTable width; null = --vfjs-gantt-grid-width (420 px).
autoSchedulebooleantruePush successors.
workdaysOnlybooleanfalseDurations in working days.
workingDaysnumber[][1, 2, 3, 4, 5]Working weekdays (0 = Sunday).
showCriticalPathbooleanfalseMark the critical path.
showBaselinebooleanfalseBaseline bars.
showSlackbooleanfalseSlack after the bars.
showLoadMapbooleanfalseWorkload strip.
focusModebooleanfalseA click focuses the dependency chain.
weekendHighlightbooleantrueShade non-working days.
todayLinebooleantrueToday line.
toolbarbooleantrueFloating toolbar.
readOnlybooleanfalseNo editing.
dateFormatstring'YYYY-MM-DD'Date format of the table.
historyLimitnumber100Undo depth.
resourcesresource[][]Resources.
showResourceHistogrambooleanfalseResource panel.
resourceColumnsarray['name', 'peak']Resource table columns.
resourceRowHeightnumber or nullnullResource row height (36 px).
histogramHeightnumber or nullnullPanel height; null = up to 6 resources.
highlightOverloadbooleantrueMark overloads.
showResourceNamesbooleanfalseResource names on the bars.
calendarsarray or object[]Named calendars.
calendarid, definition or nullnullProject calendar.
holidaysarray[]Project holidays.
workHoursarray['08:00-12:00', '13:00-17:00']Working hours.
durationUnit'day' | 'hour''day'Default unit of tasks.
snapMinutesnumber15Drag step of hour tasks.
timeFormatstring'HH:mm'Time format of hour tasks.
virtualizebooleantrueRender only the visible part.
honorConstraintsbooleantrueConstraints win over links.
moveConstraintOnDragbooleantrueA drag moves the constraint date.
showConstraintsbooleantrueMarks of constraints and deadlines.
taskEditorboolean or objecttrueTask editor dialog.
cellEditingboolean or { columns }trueInline cell editing.
contextMenuboolean or objecttrueContext menu.
sortablebooleantrueSort by a header click.
searchBoxboolean or objecttrueSearch field in the toolbar.
showProgressLinebooleanfalseProgress line.
statusDatedate or nullnullStatus date; null = now.
view'gantt' | 'pert' | 'scurve''gantt'What the component shows.
scurveobject or nullnullS-curve options.
timeZonestring or nullnullZone of "now".
crudoptions, manager, true or nullnullServer synchronization.
keyboardbooleantrueKeyboard on the table and the bars.
ariaLabelstring or nullnullAccessible name of the table.
assistantboolean or objectfalseAssistant field in the toolbar.
levelingobject or nullnullDefaults of resource leveling.

Gantt events

EventPayloadDescription
ready, dataChange, optionsChange, themeChange, destroysee Core conceptsCommon events.
taskClick{ task, event }Task clicked.
taskDblClick{ task, event, field, preventDefault }Double click (cancelable: no editor).
selectionChange{ task, source }Current task changed.
taskChange{ task, changes, source }Task changed.
progressChange{ task, progress }Progress changed.
taskAdd, taskRemove{ task }Task added / removed.
dependencyCreate, dependencyRemove{ link }Link added / removed.
expandChange{ id, collapsed }Branch expanded / collapsed.
zoomChange{ zoom, name }Zoom changed.
focusChange{ taskId, chain }Focus mode on / off.
resourcesChange{ resources }Resource list changed.
assignmentChange{ task, resource, units, action }Assignment changed.
resourceClick{ resource, event }Resource clicked.
overloadChange{ overloads }Overloaded periods changed.
calendarChange{ calendars, calendar, holidays, showConstraints, honorConstraints }Calendars changed.
constraintConflict{ conflicts, added, resolved }Conflicts changed.
contextMenu{ target, id, task, field, event, items, preventDefault }Menu opens (cancelable).
contextMenuClose{ reason }Menu closed.
menuItemClick{ id, item, target, task }Menu item chosen (target is also 'column' or 'toolbar', then task is null).
columnResize{ field, width, source }A table column got a new width (source: 'drag', 'keyboard', 'menu', 'api').
cellEditStart{ task, field, value, preventDefault }Cell editor opens (cancelable).
cellEdit{ task, field, value, oldValue }Cell edited.
taskEditorOpen{ task, tabs, preventDefault }Task editor opens (cancelable).
taskEditorClose{ task, saved }Task editor closed.
export{ format, filename, pages, tasks, view }Exported.
import{ format, project, tasks, links, resources, warnings }MS Project file imported.
filterChange{ filter, count, visible }Filter changed.
sortChange{ sort }Sort changed.
searchChange{ query, matches, index, task }Search changed.
viewChange{ view }View switched.
statusDateChange{ date }Status date changed.
assistantCommand{ text, commands, source }Assistant understood a phrase.
assistantReply{ text, result }Assistant answered.
previewChange{ kind, active, applied, report }Preview shown / applied / cleared.
resourceLevel{ report, applied }Leveling done.
scenarioChange{ action, scenario, active, scenarios, cause }Scenario changed.
compareChange{ scenario, against, diff }Comparison changed.
syncStatusChange, syncStart, syncEnd, syncFail, syncConflict, idChange, load, loadFail, queueRestoresee Server synchronizationCRUD manager events (also on the Scheduler).

Gantt methods

MethodReturnsDescription
setData, getData, setOptions, setOption, getOption, getState, setState, setTheme, on, once, off, use, t, destroy—Common methods (see Core concepts).
undo(), redo()thisHistory.
getTask(id), getTasks(), getVisibleTasks()task(s)Read tasks.
addTask(task, { before, after })taskAdd a task.
updateTask(id, patch), removeTask(id)thisChange / remove.
getLinks(), addLink(link), removeLink(id)links / link / thisLinks.
toggleTask, expandTask, collapseTask, expandAll, collapseAllthisTree.
indentTask(id), outdentTask(id)thisChange the level.
setColumnWidth(field, width), getColumnWidths()this / { field: px }Column widths (null = the column / CSS width).
setZoom, zoomIn, zoomOut, scrollToToday, scrollToDate, scrollToTaskthisTimeline.
focusTask(id), clearFocus()thisFocus mode.
getCriticalPath(), getScheduleHealth()objectAnalysis.
setResources, getResources, getResource, addResource, updateResource, removeResourcethis / resourcesResources.
assignResource, unassignResource, getAssignments, getResourceLoad, getOverloadsthis / dataAssignments and load.
setCalendars, getCalendars, getCalendar, addCalendar, updateCalendar, removeCalendar, setProjectCalendar, setTaskCalendar, setResourceCalendarthis / calendarsCalendars.
getHolidays, addHoliday, removeHoliday, isWorkingDay, isWorkingTime, getWorkingTime, addWorkingTimevalueWorking time.
setConstraint, getConstraint, setDeadline, getConflicts, getMissedDeadlines, scheduleProjectthis / dataConstraints.
editCell, cancelCellEdit, showContextMenu, hideContextMenu, openTaskEditor, closeTaskEditor, isTaskEditorOpenboolean / thisEditing UI.
getPrintLayout, getPDF, exportPDF, printlayout / PromisePDF and printing.
exportPNG, getImage, exportCSV, formatTaskDatethis / canvas / stringImage and CSV.
getXlsxSheet, getXlsx, exportXlsxsheet / PromiseExcel.
getMSProjectXML, exportMSProject, importMSProjectstring / PromiseMS Project XML.
setFilter, clearFilter, getFilter, setSort, clearSort, getSortthis / valueFilter and sort.
search, searchNext, searchPrev, clearSearch, getSearchids / id / thisSearch.
splitTask, mergeTaskSegments, getTaskSegments, setTaskSegmentsboolean / segments / thisSplit tasks.
setStatusDate, getStatusDate, getProgressLine, getSCurve, getPertData, setView, getView, createPertView, createSCurveViewvalue / viewProgress, S-curve, PERT.
getCrudManager()manager or nullServer sync.
ask, parseCommand, runCommands, confirmAssistant, cancelAssistant, getAssistantSchema, getAssistantContextresultAssistant.
levelResources, previewLeveling, applyPreview, clearPreview, getPreviewreportLeveling and previews.
createScenario, getScenarios, getScenario, renameScenario, removeScenario, setActiveScenario, getActiveScenario, compareScenario, getComparison, clearComparison, applyScenariovalueScenarios.

Scheduler options

OptionTypeDefaultDescription
dataevent[][]Events.
view'month' | 'week' | 'day' | 'agenda' | 'timeline' | 'year''week'View.
viewsarray or nullnullView buttons (null = all).
datedate or nullnullAnchor date (today).
firstDaynumber1First day of the week.
dayStart, dayEndnumber7, 22Visible hours.
workHoursarray[9, 18]Working hours.
workingDaysnumber[][1, 2, 3, 4, 5]Working weekdays.
calendars, calendar, holidaysas in the Gantt[], null, []Calendars.
resourcesresource[][]Resources.
resourceid or nullnullShow one resource.
hourHeightnumber or nullnullpx per hour; null = --vfjs-sched-hour-height (44 px).
stylestring or nullnullReady-made style.
historyLimitnumber100Undo depth.
snapMinutesnumber30Drag step.
agendaDaysnumber30Agenda horizon.
editablebooleantrueDrag editing and the popup editor.
quickAddbooleantrueQuick-add field.
showConflictsbooleantrueConflict badges.
showHeatbooleantrueMonth heat map.
showNowLinebooleantrueNow line.
categoriesobject{}Category → color.
defaultColorstring'blue'Event color.
toolbarbooleantrueToolbar.
timeZonestring or nullnullDisplay zone.
secondTimeZonestring or nullnullSecond hour scale.
recurrenceEditMode'ask' | 'this' | 'following' | 'all''ask'Scope of changes of a series.
crudoptions, manager, true or nullnullServer synchronization.
keyboardbooleantrueKeyboard on the events.
autoScrollbooleantrueScroll while dragging near an edge.
timelineScale'day' | 'week' | 'month''week'Scale of the timeline view.
timelineSnapMinutesnumber or nullnullDrag step of the timeline.
resourceGroupByfield, function or nullnullGroup the timeline rows.
collapsedGroupsstring[][]Collapsed groups.
showUnassigned'auto' or boolean'auto'Row of events without a resource.
verticalResourcesbooleanfalseOne column per resource in week / day.

Scheduler events

EventPayloadDescription
eventClick{ event, occurrenceStart, domEvent }Event clicked.
eventCreate{ event, mode, occurrence, seriesId }Event created.
eventChange{ event, changes, source, mode, occurrence, seriesId }Event changed.
eventRemove{ event, mode, occurrence, seriesId }Event removed.
viewChange{ view }View switched.
dateChange{ date }Anchor date changed.
rangeChange{ start, end, view }Visible range changed.
calendarChangeas in the GanttCalendars changed.
resourcesChange{ resources }Resources changed.
timelineScaleChange{ timelineScale }Timeline scale changed.
resourceGroupToggle{ group, collapsed, collapsedGroups }Group toggled.
resourceClick{ resource, domEvent }Resource cell clicked.
export{ format, filename, pages, view, events }Exported.
import{ format, events, warnings, calendar }iCalendar imported.

Scheduler methods

MethodReturnsDescription
setView, getView, setDate, getDate, next, prev, todaythis / valueNavigation.
getEvent, getEvents, addEvent, updateEvent, removeEvent, openEditorevent(s) / thisEvents.
quickAdd, findFreeSlot, getConflictsevent / slot / pairsHelpers.
getOccurrences, updateOccurrence, removeOccurrenceoccurrences / event / thisRecurrence.
undo, redo, canUndo, canRedothis / booleanHistory.
setCalendars, getCalendars, getCalendar, setProjectCalendar, addHoliday, removeHoliday, getHolidays, isWorkingDay, isWorkingTime, useGanttCalendarsthis / valueCalendars.
setResources, getResources, isResourceAvailable, getAvailabilityConflictsthis / valueResources.
setTimelineScale, getTimelineScale, setResourceGroupBy, toggleResourceGroup, getCollapsedGroups, scrollToResourcethis / valueTimeline view.
exportICS, getICS, importICS, exportCSVthis / string / PromiseiCalendar and CSV.
getImage, exportPNG, getPrintLayout, getPDF, exportPDF, printcanvas / PromiseImage, PDF, print.
getCrudManager()manager or nullServer sync.

The TypeScript declarations (vibefox-js-gantt.d.ts) describe every option, payload and return type in detail: GanttOptions, GanttTaskInput, GanttTask, GanttLink, GanttEvents, GanttState, GanttPdfOptions, SchedulerOptions, SchedulerEventInput, SchedulerEvents, CrudManagerOptions and others.

Troubleshooting

No styles

Link vibefox-js-gantt.css next to the script. Without it the component works but is unstyled, and the console shows one warning "VibeFox JS stylesheet is not loaded". In a bundler, import @vibefox/js-gantt/css. The framework wrappers do not add the CSS for you.

My CSS does not apply, or a page CSS framework changes the component

Your rules win over the library rules without !important because the library CSS is in @layer vfjs. If they still do not apply, check the class names: they all have the library prefix (vfjs-gantt-critical, vfjs-sched-event). The library never uses generic class names, so page CSS frameworks do not change it.

ES modules do not load from disk

Browsers load <script type="module"> only over http(s). Use a local web server, or use vibefox-js-gantt.global.js, which also works from file://.

Content Security Policy

The library does not use eval or inline scripts and loads nothing from the network. It sets inline styles on its elements (sizes and positions), so a policy with style-src must allow them ('unsafe-inline' for style attributes).

Text in the PDF is not in my font

The library ships no fonts. The PDF uses the standard PDF fonts; text outside them stays selectable but is drawn with a fallback. Pass your own font files with embedFonts (.ttf, .otf or .woff), or embedFonts: true to take the @font-face fonts of the page.

The Gantt or the Scheduler is too small

Both components fill their element. Give the element a height (CSS or an inline style); the component takes it exactly, also a small one. Without one, the Gantt is 400 px high (--vfjs-gantt-min-height) and the Scheduler at least 400 px (--vfjs-sched-min-height), growing with its content (with only a min-height of the element too). In a flex or grid layout both take the size of their cell. The target element must exist when the factory runs (a selector that finds nothing throws an error).

Dates are one day off

The end of a day task and of an all-day event is inclusive (the last day), not exclusive. Strings 'YYYY-MM-DD' are local dates; for hour tasks and timed events use 'YYYY-MM-DD HH:mm'. Timed events are shown in the timeZone of the Scheduler (default: the browser's zone).

A link or a drag does not move the task

With honorConstraints: true a constraint wins over a link; see getConflicts(). Cycles and duplicate links are refused (addLink returns null). readOnly: true turns dragging off.

Changes are sent to the server twice, or not at all

setData() counts as a local change for the CRUD manager: load data with load(), or call acceptChanges() after loading it yourself. Calendars and holidays are not synchronized (they are settings, not records).

Limitations

  • Keyboard: no cell-by-cell navigation inside a table row (F2 and the cell editor cover editing); no keyboard on the resource panel and on the days of the year view; rows cannot be moved by keyboard.
  • PERT: the slack is the total float of the current schedule; summary tasks are not PERT nodes; the network of a very large plan (50 000 tasks) takes about half a second to compute.
  • CRUD manager: calendars and holidays are not synchronized; the dates of a summary task are sent when the summary record changes.
  • Assistant: the built-in rules know the phrases of the command schema (no free conversation — that is what resolve() is for); a name that matches several tasks takes the first one in plan order; "a week" with workdaysOnly is 5 working days.
  • Scheduler timeline: a collapsed group row shows only counts; in the vertical resource view the all-day row scrolls with the hours.
  • Framework wrappers: functions in options are compared by reference; removing a prop does not reset the option to its default; Vue watches object props shallowly.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle