--- name: frappe-gantt-browser-app description: Build a task schedule with start/end dates, progress and dependencies using Frappe Gantt. Use for project scheduling views, not automatic resource optimization. --- # Frappe Gantt for browser apps Read [selection](../../references/library-selection.md), [workflow](../../references/workflow.md) and the `frappe-gantt` entry in [the approved inventory](../../references/libraries.json). Use only an approved entry and its exact packages/peers. Preserve the agreed plan; route missing prerequisites through [managed setup](../../references/managed-build.md). Load only the selected libraries. For project plans, read [roadmaps, resources and milestones](../../references/decision-models.md#roadmaps-resources-and-milestones). Preserve requested resources and milestones in the application model even when the chart alone cannot represent them. ## Usage pattern Read [React and TypeScript integration](../../references/react-libraries.md). Copy this example into `app/recipes/frappe-gantt.tsx`, the listed declaration into `app/types/`, the installed `dist/frappe-gantt.css` into `app/vendor/frappe-gantt.css`, and the plugin's matching theme adapter into `app/theme/frappe-gantt.css`. ```tsx import type { Task, Options } from 'frappe-gantt'; import ganttModule from 'frappe-gantt?url'; import structuralCss from '../vendor/frappe-gantt.css?inline'; import themeCss from '../theme/frappe-gantt.css?inline'; import tokens from '../theme/duke-tokens.css?inline'; import fonts from '../theme/duke-fonts.css?inline'; const tasks: Task[] = [{ id: 'a', name: 'Prepare', start: '2026-01-05', end: '2026-01-07', progress: 0 }]; const options: Options = { view_mode: 'Day', readonly: true, popup: false, scroll_to: 'start' }; // Only serialize controlled configuration; never concatenate imported strings into HTML/JS. const json = (value: unknown) => JSON.stringify(value).replaceAll('<', '\\u003c'); export function Example() { const source = `
Loading schedule…