Skip to content

Plugin And Configuration

This page documents 47 public symbols exported by @revolist/revogrid-enterprise.

function

export function createGanttDateFormatContext(project: Pick<GanttPluginConfig, 'timeZone' | 'dateFormats'> | null | undefined, surface: GanttDateFormatSurface, field?: string, fallbackLocale = 'en-US'): GanttDateFormatContext;
ParameterTypeRequiredDefaultDescription
projectPick<GanttPluginConfig, "timeZone" | "dateFormats"> | null | undefinedYes
surfaceGanttDateFormatSurfaceYes
fieldstring | undefinedNo
fallbackLocalestringNo'en-US'

Related types: GanttDateFormatContext, GanttDateFormatSurface, GanttPluginConfig

function

One-shot helper that runs the scheduling engine_and_ builds the full grid configuration (scale + projected rows) in a single call.

export function createTaskGridConfig(project: ProjectSnapshot, taskStore: TaskStore, resourceStore: ResourceStore, assignmentStore: AssignmentStore, zoomLevel: TimelineZoomLevel | TimelineZoomPreset, schedulerEngine: SchedulerEngine = createSchedulerEngine(), locale = 'en-US', defaultHeaderFormatter?: TimelineDateFormatter, projectionOptions: TaskRowProjectionOptions = {}, scaleOptions: TaskGridScaleOptions = {}): TaskGridConfig;
ParameterTypeRequiredDefaultDescription
projectProjectSnapshotYes- The resolved project snapshot.
taskStoreTaskStoreYes- Task store instance.
resourceStoreResourceStoreYes- Resource store instance.
assignmentStoreAssignmentStoreYes- Assignment store instance.
zoomLevelTimelineZoomLevel | TimelineZoomPresetYes- Zoom level descriptor or named preset.
schedulerEngineSchedulerEngineNocreateSchedulerEngine()- Optional pre-configured scheduler engine.
localestringNo'en-US'- BCP 47 locale tag (default "en-US").
defaultHeaderFormatterTimelineDateFormatter | undefinedNo- Optional custom header formatter.
projectionOptionsTaskRowProjectionOptionsNo{}- Optional row projection overrides.
scaleOptionsTaskGridScaleOptionsNo{}

Returns: A complete TaskGridConfig.

Related types: AssignmentStore, ProjectSnapshot, ResourceStore, SchedulerEngine, TaskGridConfig, TaskGridScaleOptions, TaskRowProjectionOptions, TaskStore, TimelineDateFormatter, TimelineZoomLevel, TimelineZoomPreset

function

Build the timeline scale configuration from a scheduling result and zoom level.

Determines the visible date range, creates the timeline scale, and derives the header rows, ticks, bands, and visible range for the gantt view-model.

export function createTaskGridScaleConfig(schedulingResult: SchedulingResult, zoomLevelOrPreset: TimelineZoomLevel | TimelineZoomPreset, locale = 'en-US', defaultHeaderFormatter?: TimelineDateFormatter, options: TaskGridScaleOptions = {}): TaskGridScaleConfig;
ParameterTypeRequiredDefaultDescription
schedulingResultSchedulingResultYes- The output of the scheduling engine.
zoomLevelOrPresetTimelineZoomLevel | TimelineZoomPresetYes- A concrete zoom level descriptor or a named preset string.
localestringNo'en-US'- BCP 47 locale tag used for date formatting (default "en-US").
defaultHeaderFormatterTimelineDateFormatter | undefinedNo- Optional custom formatter for header cell labels.
optionsTaskGridScaleOptionsNo{}

Returns: A TaskGridScaleConfig ready for rendering.

Related types: SchedulingResult, TaskGridScaleConfig, TaskGridScaleOptions, TimelineDateFormatter, TimelineZoomLevel, TimelineZoomPreset

function

Project tasks into grid rows using a pre-built timeline scale.

export function createTaskGridSource(project: ProjectSnapshot, taskStore: TaskStore, resourceStore: ResourceStore, assignmentStore: AssignmentStore, scale: TimelineScale, schedulingResult: SchedulingResult, projectionOptions: TaskRowProjectionOptions = {}): readonly DataType[];
ParameterTypeRequiredDefaultDescription
projectProjectSnapshotYes- The resolved project snapshot.
taskStoreTaskStoreYes- The task store providing the ordered task list.
resourceStoreResourceStoreYes- The resource store for resource name lookups.
assignmentStoreAssignmentStoreYes- The assignment store for task–resource links.
scaleTimelineScaleYes- The timeline scale used for coordinate projection.
schedulingResultSchedulingResultYes- The scheduling engine output.
projectionOptionsTaskRowProjectionOptionsNo{}- Optional overrides for row projection behaviour.

Returns: An array of data rows suitable for the grid source.

Related types: AssignmentStore, ProjectSnapshot, ResourceStore, SchedulingResult, TaskRowProjectionOptions, TaskStore, TimelineScale

function

export function formatGanttDateWithOption(value: string | null | undefined, option: GanttDateFormatOption | undefined, context: GanttDateFormatContext): string;
ParameterTypeRequiredDefaultDescription
valuestring | null | undefinedYes
optionGanttDateFormatOption | undefinedYes
contextGanttDateFormatContextYes

Related types: GanttDateFormatContext, GanttDateFormatOption

function

export function formatGanttEditorDate(value: string | null | undefined, project: Pick<GanttPluginConfig, 'timeZone' | 'dateFormats'> | null | undefined, field?: string): string;
ParameterTypeRequiredDefaultDescription
valuestring | null | undefinedYes
projectPick<GanttPluginConfig, "timeZone" | "dateFormats"> | null | undefinedYes
fieldstring | undefinedNo

Related types: GanttPluginConfig

function

export function formatGanttTableDate(value: string | null | undefined, project: Pick<GanttPluginConfig, 'timeZone' | 'dateFormats'> | null | undefined, field?: string): string;
ParameterTypeRequiredDefaultDescription
valuestring | null | undefinedYes
projectPick<GanttPluginConfig, "timeZone" | "dateFormats"> | null | undefinedYes
fieldstring | undefinedNo

Related types: GanttPluginConfig

function

export function formatGanttTooltipDate(value: string, project: Pick<GanttPluginConfig, 'timeZone' | 'dateFormats'> | null | undefined, field?: string): string;
ParameterTypeRequiredDefaultDescription
valuestringYes
projectPick<GanttPluginConfig, "timeZone" | "dateFormats"> | null | undefinedYes
fieldstring | undefinedNo

Related types: GanttPluginConfig

constant

export const GANTT_DEPENDENCY_DROPDOWN_COLUMN_TYPE: "gantt-dependency-dropdown";

type

export type GanttConstraintTypeOption = '' | TaskConstraintType;

Related types: TaskConstraintType

interface

export interface GanttContextMenuConfig {
/**
* Enables generated task row and task bar actions such as Add, Indent,
* Outdent, and Delete. Defaults to `true`.
*/
readonly row?: boolean;
/**
* Enables generated task-table column actions and pinned timeline zoom
* actions. Defaults to `true`.
*/
readonly column?: boolean;
/** Label overrides for built-in Gantt context-menu items. */
readonly labels?: GanttContextMenuLabels;
/** Hide specific built-in Gantt context-menu items by id. */
readonly hidden?: GanttContextMenuHiddenItems;
}
MemberType / returnRequiredDefaultDescription
rowboolean | undefinedNoEnables generated task row and task bar actions such as Add, Indent, Outdent, and Delete. Defaults to true.
columnboolean | undefinedNoEnables generated task-table column actions and pinned timeline zoom actions. Defaults to true.
labelsPartial<Record<GanttContextMenuItemId, string>> | undefinedNoLabel overrides for built-in Gantt context-menu items.
hiddenPartial<Record<GanttContextMenuItemId, boolean>> | undefinedNoHide specific built-in Gantt context-menu items by id.

Related types: GanttContextMenuHiddenItems, GanttContextMenuLabels

type

export type GanttContextMenuHiddenItems = Partial<Record<GanttContextMenuItemId, boolean>>;

Related types: GanttContextMenuItemId

type

export type GanttContextMenuItemId =
| 'edit'
| 'add'
| 'convertToMilestone'
| 'indent'
| 'outdent'
| 'delete'
| 'search'
| 'sortAsc'
| 'sortDesc'
| 'filter'
| 'hideColumn'
| 'columns'
| 'zoomIn'
| 'zoomOut';

type

export type GanttContextMenuLabels = Partial<Record<GanttContextMenuItemId, string>>;

Related types: GanttContextMenuItemId

interface

Options for programmatic task creation via the {@link GANTT_TASK_CREATE_EVENT} event.

export interface GanttCreateTaskOptions {
/** Parent task id, or `null` for a root-level task. */
readonly parentId?: TaskId | null;
/** Insert the new task after this sibling. */
readonly insertAfterTaskId?: TaskId | null;
/** Initial start date. */
readonly startDate?: ISODateString;
/** Initial end date. */
readonly endDate?: ISODateString;
/** Initial task name. */
readonly name?: string;
/** Initial custom source-row values used when creating a task. */
readonly initialValues?: DataType;
/**
* Whether task-created listeners such as the packaged editor should open a
* follow-up UI for the new task. Defaults to `true`.
*/
readonly openEditor?: boolean;
}
MemberType / returnRequiredDefaultDescription
parentIdstring | null | undefinedNoParent task id, or null for a root-level task.
insertAfterTaskIdstring | null | undefinedNoInsert the new task after this sibling.
startDateISODateString | undefinedNoInitial start date.
endDateISODateString | undefinedNoInitial end date.
namestring | undefinedNoInitial task name.
initialValuesDataType | undefinedNoInitial custom source-row values used when creating a task.
openEditorboolean | undefinedNoWhether task-created listeners such as the packaged editor should open a follow-up UI for the new task. Defaults to true.

Related types: TaskId

interface

export interface GanttDateEditorFormatConfig {
readonly formatter?: GanttDateFormatter;
readonly parser?: GanttDateParser;
readonly options?: Intl.DateTimeFormatOptions;
}
MemberType / returnRequiredDefaultDescription
formatterGanttDateFormatter | undefinedNo
parserGanttDateParser | undefinedNo
optionsIntl.DateTimeFormatOptions | undefinedNo

Related types: GanttDateFormatter, GanttDateParser

interface

export interface GanttDateFormatConfig {
/** BCP 47 locale tag used by Intl-based Gantt date formatting. */
readonly locale?: string;
/** IANA time zone used by Intl-based Gantt date formatting. Defaults to the project time zone. */
readonly timeZone?: string;
/** Managed task-table date cell format. Defaults to locale-aware medium date output. */
readonly table?: GanttDateFormatOption;
/** Task-bar tooltip date format. Omit to keep the existing UTC tooltip labels. */
readonly tooltip?: GanttDateFormatOption;
/** Task editor date display/parser configuration. */
readonly editor?: GanttDateEditorFormatConfig;
/** Timeline header formatter. Preferred over `zoom.defaultHeaderFormatter` when set. */
readonly timeline?: TimelineDateFormatter;
/** Fallback parser for custom table/editor date text. */
readonly parser?: GanttDateParser;
}
MemberType / returnRequiredDefaultDescription
localestring | undefinedNoBCP 47 locale tag used by Intl-based Gantt date formatting.
timeZonestring | undefinedNoIANA time zone used by Intl-based Gantt date formatting. Defaults to the project time zone.
tableGanttDateFormatOption | undefinedNoManaged task-table date cell format. Defaults to locale-aware medium date output.
tooltipGanttDateFormatOption | undefinedNoTask-bar tooltip date format. Omit to keep the existing UTC tooltip labels.
editorGanttDateEditorFormatConfig | undefinedNoTask editor date display/parser configuration.
timelineTimelineDateFormatter | undefinedNoTimeline header formatter. Preferred over zoom.defaultHeaderFormatter when set.
parserGanttDateParser | undefinedNoFallback parser for custom table/editor date text.

Related types: GanttDateEditorFormatConfig, GanttDateFormatOption, GanttDateParser, TimelineDateFormatter

interface

export interface GanttDateFormatContext {
readonly surface: GanttDateFormatSurface;
readonly field?: string;
readonly locale: string;
readonly timeZone: string;
readonly levelId?: string;
readonly rowId?: string;
readonly unit?: string;
readonly count?: number;
readonly rowIndex?: number;
readonly isLeafRow?: boolean;
}
MemberType / returnRequiredDefaultDescription
surfaceGanttDateFormatSurfaceYes
fieldstring | undefinedNo
localestringYes
timeZonestringYes
levelIdstring | undefinedNo
rowIdstring | undefinedNo
unitstring | undefinedNo
countnumber | undefinedNo
rowIndexnumber | undefinedNo
isLeafRowboolean | undefinedNo

Related types: GanttDateFormatSurface

type

export type GanttDateFormatOption = Intl.DateTimeFormatOptions | GanttDateFormatter;

Related types: GanttDateFormatter

type

export type GanttDateFormatSurface = 'table' | 'tooltip' | 'editor' | 'timeline';

type

export type GanttDateFormatter = (
value: ISODateString | ISODateTimeString | string,
context: GanttDateFormatContext,
) => string;

Related types: GanttDateFormatContext

type

export type GanttDateParser = (
value: string,
context: GanttDateFormatContext,
) => ISODateString | ISODateTimeString | null;

Related types: GanttDateFormatContext

constant

export const ganttDependencyDropdownCellTemplate: CellTemplate<DataType<any, ColumnProp>> | undefined;

class

export class GanttDependencyDropdownEditor {
element?: HTMLElement | null | undefined;
editCell?: EditCell | undefined;
constructor(private readonly data: ColumnDataSchemaModel, private readonly saveCallback: (value: unknown, preventFocus?: boolean) => void, private readonly closeCallback: (focusNext?: boolean) => void);
componentDidRender(): Promise<void>;
getValue(): readonly GanttDependencyDropdownValue[];
disconnectedCallback(): void;
render(createElement: HyperFunc<VNode>): VNode;
}
MemberType / returnRequiredDefaultDescription
elementHTMLElement | null | undefinedNo
editCellEditCell | undefinedNo
hostHTMLElement | null | undefinedNo
valuereadonly GanttDependencyDropdownValue[]Yes
mountedbooleanYesfalse
closedbooleanYesfalse
componentDidRender()Promise<void>Yes
getValue()readonly GanttDependencyDropdownValue[]Yes
disconnectedCallback()voidYes
render(createElement: HyperFunc<VNode>)VNodeYes
onChange(value: readonly GanttDependencyDropdownValue[])voidYes
closeEditor(focusNext?: boolean)voidYes

Related types: GanttDependencyDropdownValue

interface

Context supplied when building dependency-arrow tooltip content.

export interface GanttDependencyTooltipContext {
/** Dependency relationship under the pointer. */
readonly dependency: DependencyEntity;
/** Predecessor/source task when present in the current task store. */
readonly predecessorTask: TaskEntity | null;
/** Successor/target task when present in the current task store. */
readonly successorTask: TaskEntity | null;
/** Display label used for the From row. Falls back to the predecessor task id. */
readonly predecessorName: string;
/** Display label used for the To row. Falls back to the successor task id. */
readonly successorName: string;
/** Newline-delimited default tooltip body. */
readonly defaultTooltip: string;
}
MemberType / returnRequiredDefaultDescription
dependencyDependencyEntityYesDependency relationship under the pointer.
predecessorTaskTaskEntity | nullYesPredecessor/source task when present in the current task store.
successorTaskTaskEntity | nullYesSuccessor/target task when present in the current task store.
predecessorNamestringYesDisplay label used for the From row. Falls back to the predecessor task id.
successorNamestringYesDisplay label used for the To row. Falls back to the successor task id.
defaultTooltipstringYesNewline-delimited default tooltip body.

Related types: DependencyEntity, TaskEntity

type

Callback that replaces dependency-arrow tooltip content. Return null or undefined to keep the default From/To tooltip.

export type GanttDependencyTooltipHook = (context: GanttDependencyTooltipContext) => string | null | undefined;

Related types: GanttDependencyTooltipContext

interface

export interface GanttLabelsConfig {
/** Labels for task mode dropdown values. */
readonly taskMode?: Partial<Record<GanttTaskModeOption, string>>;
/** Labels for calculated task status values. */
readonly status?: Partial<Record<TaskStatus, string>>;
/** Labels for editable workflow status values. */
readonly workflowStatus?: Partial<Record<TaskWorkflowStatus, string>>;
/** Labels for effort mode dropdown values. */
readonly effortMode?: Partial<Record<TaskEffortMode, string>>;
/** Labels for constraint type dropdown values. Use `''` for the no-constraint option. */
readonly constraintType?: Partial<Record<GanttConstraintTypeOption, string>>;
}
MemberType / returnRequiredDefaultDescription
taskModePartial<Record<GanttTaskModeOption, string>> | undefinedNoLabels for task mode dropdown values.
statusPartial<Record<TaskStatus, string>> | undefinedNoLabels for calculated task status values.
workflowStatusPartial<Record<TaskWorkflowStatus, string>> | undefinedNoLabels for editable workflow status values.
effortModePartial<Record<TaskEffortMode, string>> | undefinedNoLabels for effort mode dropdown values.
constraintTypePartial<Record<GanttConstraintTypeOption, string>> | undefinedNoLabels for constraint type dropdown values. Use '' for the no-constraint option.

Related types: GanttConstraintTypeOption, GanttTaskModeOption, TaskEffortMode, TaskStatus, TaskWorkflowStatus

interface

A vertical flag line pinned to a specific date on the gantt timeline. Shows a cap/flag at the top of the canvas and a full-height vertical line.

export interface GanttMilestoneLine {
/** Unique identifier. */
readonly id: string;
/** Date the line is pinned to. */
readonly date: ISODateString;
/** Label displayed on the flag cap. */
readonly label?: string;
/** Optional CSS color for the line and flag (defaults to CSS variable). */
readonly color?: string;
}
MemberType / returnRequiredDefaultDescription
idstringYesUnique identifier.
dateISODateStringYesDate the line is pinned to.
labelstring | undefinedNoLabel displayed on the flag cap.
colorstring | undefinedNoOptional CSS color for the line and flag (defaults to CSS variable).

class

export class GanttPlugin extends CorePlugin {
pluginDependencies: PluginDependency[];
constructor(revogrid: HTMLRevoGridElement, providers: PluginProviders);
applyGantt(config?: GanttPluginConfig): void;
clearGantt(): void;
destroy(): void;
zoomIn(): boolean;
zoomOut(): boolean;
setZoomLevel(levelId: string): boolean;
getZoomLevel(): TimelineZoomLevel;
canZoomIn(): boolean;
canZoomOut(): boolean;
getVisibleRange(): { startDate: ISODateString; endDate: ISODateString; } | null;
captureBaseline(options?: CaptureBaselineOptions): BaselineSnapshot | null;
createTask(options?: GanttCreateTaskOptions): TaskId | null;
updateTask(taskId: TaskId, patch: TaskUpdate): boolean;
getProjectSnapshot(): ProjectSnapshot | null;
finalizeTaskCreate(taskId: TaskId): boolean;
discardTaskCreate(taskId: TaskId): boolean;
indentTasks(taskIds?: readonly TaskId[]): readonly TaskId[];
indentTask(taskId?: TaskId): TaskId | null;
outdentTasks(taskIds?: readonly TaskId[]): readonly TaskId[];
outdentTask(taskId?: TaskId): TaskId | null;
convertTasksToMilestones(taskIds?: readonly TaskId[]): readonly TaskId[];
convertTaskToMilestone(taskId?: TaskId): TaskId | null;
deleteTasks(taskIds?: readonly TaskId[]): readonly TaskId[];
deleteTask(taskId?: TaskId): TaskId | null;
}
MemberType / returnRequiredDefaultDescription
pluginDependenciesPluginDependency[]Yes[ { kind: 'auto-installed', target: { type: 'plugins', plugins: [() => OverlayPlugin, () => EventManagerPlugin, () => HistoryPlugin, () => TooltipPlugin, () => ContextMenuPlugin] }, description: 'Installs these Pro plugins internally when absent.', }, { kind: 'auto-installed', target: { type: 'plugins', plugins: [() => RowOrderPlugin, () => TreeDataPlugin, () => ColumnHidePlugin, () => ColumnDialogPlugin, () => GanttPanelResizePlugin, () => GanttTaskEditorDialogPlugin, () => GanttAddTaskRowPlugin, () => GanttTimelineHeaderPlugin] }, description: 'Installs these plugins internally for Gantt grid structure, row reordering, column visibility management, panel resizing, task editing, the pinned add-task row, and timeline header rendering.', }, { kind: 'auto-installed', target: { type: 'plugin', plugin: () => AdvanceFilterPlugin }, description: 'Installs advanced filtering when Gantt enables task-table filters after RevoGrid core plugin bootstrap.', }, { kind: 'config-integration', target: [ { type: 'contract', contract: 'direct-tree-config' }, { type: 'contract', contract: 'direct-event-manager-config' }, { type: 'contract', contract: 'direct-history-config' }, ], description: 'Reads and writes direct plugin config props while synchronizing Gantt state.', }, ]
tooltipSuppressionGanttTooltipSuppressionYes
ganttConfigGanttPluginConfig | nullYesnull
gridStateGanttGridStateYesnew GanttGridState()
schedulerEngineSchedulerEngineYescreateSchedulerEngine()
dependencyLayoutServiceDependencyLayoutServiceYescreateDependencyLayoutService()
gridSyncGanttGridSyncYes
timelineHeaderPluginGanttTimelineHeaderPluginYes
rowOrderStateGanttRowOrderStateYes
searchToolGanttSearchToolYes
historyToolGanttHistoryToolYes
taskMutationServiceDefaultTaskMutationServiceYescreateTaskMutationService()
assignmentMutationServiceAssignmentMutationServiceYescreateAssignmentMutationService()
dependencyMutationServiceDependencyMutationServiceYescreateDependencyMutationService()
isApplyingGridRowsbooleanYesfalse
resourcePlanningNameColumnEnabledboolean | nullYesnull
toolContextGanttCoordinatorContextYes
taskBarsPluginGanttTaskBarsPluginYes
addTaskRowPluginGanttAddTaskRowPluginYes
timelineViewportGanttTimelineViewportControllerYes
timelineBackgroundToolTimelineBackgroundToolYes
taskSelectionToolGanttTaskSelectionToolYes
selectionCoordinatorGanttSelectionCoordinatorYes
calendarToolCalendarToolYesnew CalendarTool()
timelineToolTimelineToolYes
timelineStateTimelineViewStateYesnew TimelineViewState()
baselineToolBaselineToolYesnew BaselineTool()
criticalPathToolCriticalPathToolYesnew CriticalPathTool()
assignmentsToolAssignmentsToolYes
dependencyToolDependencyToolYes
dependencyOverlayPluginGanttDependencyOverlayPluginYes
contextMenuToolGanttContextMenuToolYes
featureToolsreadonly GanttFeatureTool[]Yes
hasHydratedTaskRowsbooleanYesfalse
hasHydratedDependenciesbooleanYesfalse
hasHydratedAssignmentsbooleanYesfalse
hasHydratedBaselinesbooleanYesfalse
externalDependenciesreadonly DependencyEntity[] | undefinedYes
externalCalendarsreadonly CalendarEntity[] | undefinedYes
externalResourcesreadonly ResourceEntity[] | undefinedYes
externalAssignmentsreadonly AssignmentEntity[] | undefinedYes
externalBaselinesreadonly BaselineSnapshot[] | undefinedYes
pendingTaskCreateSnapshotsMap<string, readonly DataType[]>Yesnew Map<TaskId, readonly DataType[]>()
timelineHeaderRefreshFramenumber | nullYesnull
viewportScrollRefreshFramenumber | nullYesnull
rowOrderCommitTimernumber | nullYesnull
pluginsInitializedbooleanYesfalse
featureToolsSetupbooleanYesfalse
onGridKeyDown(event: CustomEvent<KeyboardEvent> | KeyboardEvent) => voidYescreateKeyboardEventAdapter((event) => this.onKeyDown(event))
onGridWheel(event: WheelEvent) => voidYes(event: WheelEvent) => this.onWheel(event)
onGridNativeScroll(event: Event) => voidYes(event: Event) => this.onNativeViewportScroll(event)
applyGantt(config?: GanttPluginConfig)voidYes
clearGantt()voidYes
destroy()voidYes
applyInitialState(initialBindings: GanttObservableBindings)voidYes
enableRangeSelectionDefault()voidYes
initPlugins()voidYes
setupFeatureTools()voidYes
registerEventListeners()GanttObservableBindingsYes
bootstrapProject(project: GanttPluginConfig)voidYes
handleSourceChange(source: DataType[] | undefined, updateMode: GridUpdateMode = 'none')GanttGridRenderResult | nullYes
scheduleRowOrderCommit(previousTasks: readonly DataType[], movedTaskIds: readonly TaskId[] = [], projectedRows: readonly DataType[] = [])voidYes
cancelRowOrderCommit()voidYes
commitRowOrder(previousTasks: readonly DataType[], movedTaskIds: readonly TaskId[] = [], projectedRows: readonly DataType[] = [])voidYes
refreshSearchAfterSourceSet()voidYes
handleDependenciesChange(dependencies: readonly DependencyEntity[] | undefined)voidYes
handleCalendarsChange(calendars: readonly CalendarEntity[] | undefined)voidYes
resolveConfiguredCalendars(config: GanttPluginConfig | null)readonly CalendarEntity[]Yes
handleResourcesChange(resources: readonly ResourceEntity[] | undefined)voidYes
handleAssignmentsChange(assignments: readonly AssignmentEntity[] | undefined)voidYes
handleBaselinesChange(baselines: readonly BaselineSnapshot[] | undefined)voidYes
emitTaskHistoryIfChanged(previousTasks: readonly DataType[], nextTasks: readonly DataType[])voidYes
emitDependencyHistoryIfChanged(previousDependencies: readonly DependencyEntity[], nextDependencies: readonly DependencyEntity[])voidYes
emitAssignmentHistoryIfChanged(previousAssignments: readonly AssignmentEntity[], nextAssignments: readonly AssignmentEntity[])voidYes
emitBaselineHistoryIfChanged(previousBaselines: readonly BaselineSnapshot[], nextBaselines: readonly BaselineSnapshot[])voidYes
renderGrid(updateMode: GridUpdateMode = 'structure')GanttGridRenderResult | nullYes
refreshGanttViewport(updateMode: GridUpdateMode = 'viewport')GanttGridRenderResult | nullYes
syncGridRows(rows: readonly DataType[], updateMode: GridUpdateMode)voidYes
collectRenderContributions()GanttRenderContributionsYes
getTaskRowPatchContext(taskId: TaskId | null, patch: Partial<TaskEntity>)GanttSourcePatchContextYes
commitGridEdit(detail: EventManagerEvent)voidYes
replayHistoryEdit(detail: EventManagerEvent)booleanYes
applyGridEditData(detail: EventManagerEvent, options: { emitBeforeTaskChange: boolean; preferRawTaskPatch: boolean })booleanYes
applyDirectSourcePatch(taskId: TaskId, sourcePatch: Record<string, unknown>)voidYes
commitDerivedTaskStoreToSource()voidYes
normalizeGridEditValue(field: string, value: unknown)unknownYes
onLayoutChanged()voidYes
onViewportScrollSource(event: CustomEvent<ViewPortScrollEvent>)voidYes
onNativeViewportScroll(event: Event)voidYes
onViewportScrollApplied()voidYes
shouldSyncViewportFromScrollSource(event: CustomEvent<ViewPortScrollEvent>)booleanYes
shouldSyncViewportFromNativeScroll(event: Event)booleanYes
scheduleViewportScrollRefresh()voidYes
cancelViewportScrollRefresh()voidYes
onViewportChanged()voidYes
scrollGanttViewport(position: { x?: number; y?: number })Promise<void>Yes
scheduleTimelineHeaderRefresh()voidYes
cancelTimelineHeaderRefresh()voidYes
syncTimelineBackground(viewport: GanttViewportSnapshot | null = this.timelineViewport.syncFrame())voidYes
hasTimelineBackgroundHeaderStateChanged(state: TimelineBackgroundHeaderState)booleanYes
onKeyDown(event: KeyboardEvent)voidYes
onWheel(event: WheelEvent)voidYes
zoomIn()booleanYes
zoomOut()booleanYes
setZoomLevel(levelId: string)booleanYes
getZoomLevel()TimelineZoomLevelYes
canZoomIn()booleanYes
canZoomOut()booleanYes
getVisibleRange(){ startDate: ISODateString; endDate: ISODateString; } | nullYes
captureBaseline(options?: CaptureBaselineOptions)BaselineSnapshot | nullYes
createTask(options?: GanttCreateTaskOptions)TaskId | nullYes
createTaskFromPinnedRow(name: string)TaskId | nullYes
updateTask(taskId: TaskId, patch: TaskUpdate)booleanYes
getProjectSnapshot()ProjectSnapshot | nullYesReturn the project collections currently owned by the Gantt runtime.
finalizeTaskCreate(taskId: TaskId)booleanYes
discardTaskCreate(taskId: TaskId)booleanYes
commitTaskCreate(options?: GanttCreateTaskOptions)TaskId | nullYes
shouldDeferTaskCreateHistory(options?: GanttCreateTaskOptions)booleanYes
syncPublicTaskRows(options: { createdTaskId?: TaskId; initialValues?: DataType } = {})voidYes
resolveBulkTaskIds(taskIds?: readonly TaskId[])TaskId[]Yes
validateTaskMutation(action: GanttBulkTaskAction, taskIds: readonly TaskId[], options: { startDate?: string } = {})GanttBulkActionValidationYes
emitBulkBeforeTaskChanges(action: 'indent' | 'outdent' | 'delete' | 'convert-to-milestone', taskIds: readonly TaskId[])booleanYes
commitBulkTaskAction(action: 'indent' | 'outdent' | 'delete' | 'convert-to-milestone', taskIds: readonly TaskId[])readonly TaskId[]Yes
syncTaskMutationService()voidYes
indentTasks(taskIds?: readonly TaskId[])readonly TaskId[]Yes
indentTask(taskId?: TaskId)TaskId | nullYes
outdentTasks(taskIds?: readonly TaskId[])readonly TaskId[]Yes
outdentTask(taskId?: TaskId)TaskId | nullYes
convertTasksToMilestones(taskIds?: readonly TaskId[])readonly TaskId[]Yes
convertTaskToMilestone(taskId?: TaskId)TaskId | nullYes
deleteTasks(taskIds?: readonly TaskId[])readonly TaskId[]Yes
deleteTask(taskId?: TaskId)TaskId | nullYes
refreshTree(parentId?: TaskId | null)voidYes
getTaskIdFromModel(model: unknown)TaskId | nullYes
clearRowSelectSelection()voidYes

Related types: BaselineSnapshot, GanttCreateTaskOptions, GanttPluginConfig, ProjectSnapshot, TaskId, TaskUpdate, TimelineZoomLevel

interface

Top-level configuration for the {@link GanttPlugin}. Pass this object to the grid element’s gantt property.

export interface GanttPluginConfig {
// Project metadata (required)
/** Unique project identifier. */
readonly id: EntityId;
/** Project display name. */
readonly name: string;
/** Project data schema version. */
readonly version: string;
/** Currency code for cost calculations (e.g. `\"USD\"`). */
readonly currency: string;
/** Default IANA time zone (e.g. `\"America/New_York\"`). */
readonly timeZone: string;
/** Calendar used by default for new tasks. */
readonly primaryCalendarId: CalendarId;
/** Timestamp of last project modification. */
readonly updatedAt: ISODateTimeString;
/** Reporting date used for calculated task status. Defaults to today. */
readonly statusDate?: ISODateString;
/** Working calendars for tasks/resources, including optional intraday `workingHours`. */
readonly calendars?: readonly CalendarEntity[];
/** Duration display unit and working-time conversion settings. */
readonly durationSettings?: DurationSettings;
// Configuration (all optional)
/** When `true`, packaged Gantt task, dependency, and assignment mutations are rejected. */
readonly readOnly?: boolean;
/**
* Task kinds available in packaged Task Type editors.
* Omit to allow `task`, `milestone`, and `summary`.
*/
readonly allowedTaskTypes?: readonly TaskType[];
/** Pre-defined zoom level — see {@link TimelineZoomPreset}. */
readonly zoomPreset?: TimelineZoomPreset;
/** Timeline precision used by default zoom and interaction snapping. Defaults to `'day'`. */
readonly timelinePrecision?: 'day' | 'hour';
/** Timeline interaction snapping options for task create, move, and resize. */
readonly snap?: GanttSnapConfig;
/** Advanced zoom configuration overriding the preset. */
readonly zoom?: TimelineZoomConfig;
/** First day of week for timeline week headers/ticks, where `0` is Sunday and `1` is Monday. Defaults to Sunday. */
readonly weekStartsOn?: 0 | 1;
/**
* Scheduling engine options.
* These are MSP-inspired policies, not display preferences: they decide
* whether authored dates move, warn, or stay anchored during recalculation.
*/
readonly scheduling?: GanttSchedulingConfig;
/** When `true`, users can create new tasks from the timeline. */
readonly allowTaskCreate?: boolean;
/** When `true`, shows a pinned bottom row for typing a new task name. Requires `allowTaskCreate`. */
readonly taskCreateRow?: boolean;
/** When `true`, dragging empty timeline space creates a new task. Disabled by default. */
readonly allowTaskCreateByDrag?: boolean;
/**
* Built-in Gantt context menu integration. Enabled by default. Set to `false`
* to opt out of generated row, column, and timeline menu items while keeping
* application-provided RevoGrid context menu configuration untouched.
*/
readonly contextMenu?: GanttContextMenuConfig | false;
/** Restricts which dependency types the user may create. */
readonly allowedDependencyTypes?: readonly DependencyType[];
/** Filters the resource list to only show selected resources. */
readonly resourceFilterIds?: readonly ResourceId[];
/** Resource planning row view and load bar options. */
readonly resourcePlanning?: GanttResourcePlanningConfig;
/** Project-level date display and parsing preferences. */
readonly dateFormats?: GanttDateFormatConfig;
/** Built-in Gantt UI label overrides for localization. */
readonly labels?: GanttLabelsConfig;
/** Visual appearance options — see {@link GanttVisualConfig}. */
readonly visuals?: GanttVisualConfig;
}
MemberType / returnRequiredDefaultDescription
idstringYesUnique project identifier.
namestringYesProject display name.
versionstringYesProject data schema version.
currencystringYesCurrency code for cost calculations (e.g. \"USD\").
timeZonestringYesDefault IANA time zone (e.g. \"America/New_York\").
primaryCalendarIdCalendarIdYesCalendar used by default for new tasks.
updatedAt${number}-${number}-${number}T${string}YesTimestamp of last project modification.
statusDateISODateString | undefinedNoReporting date used for calculated task status. Defaults to today.
calendarsreadonly CalendarEntity[] | undefinedNoWorking calendars for tasks/resources, including optional intraday workingHours.
durationSettingsDurationSettings | undefinedNoDuration display unit and working-time conversion settings.
readOnlyboolean | undefinedNoWhen true, packaged Gantt task, dependency, and assignment mutations are rejected.
allowedTaskTypesreadonly TaskType[] | undefinedNoTask kinds available in packaged Task Type editors. Omit to allow task, milestone, and summary.
zoomPresetTimelineZoomPreset | undefinedNoPre-defined zoom level — see {@link TimelineZoomPreset}.
timelinePrecision"hour" | "day" | undefinedNoTimeline precision used by default zoom and interaction snapping. Defaults to 'day'.
snapGanttSnapConfig | undefinedNoTimeline interaction snapping options for task create, move, and resize.
zoomTimelineZoomConfig | undefinedNoAdvanced zoom configuration overriding the preset.
weekStartsOn0 | 1 | undefinedNoFirst day of week for timeline week headers/ticks, where 0 is Sunday and 1 is Monday. Defaults to Sunday.
schedulingGanttSchedulingConfig | undefinedNoScheduling engine options. These are MSP-inspired policies, not display preferences: they decide whether authored dates move, warn, or stay anchored during recalculation.
allowTaskCreateboolean | undefinedNoWhen true, users can create new tasks from the timeline.
taskCreateRowboolean | undefinedNoWhen true, shows a pinned bottom row for typing a new task name. Requires allowTaskCreate.
allowTaskCreateByDragboolean | undefinedNoWhen true, dragging empty timeline space creates a new task. Disabled by default.
contextMenufalse | GanttContextMenuConfig | undefinedNoBuilt-in Gantt context menu integration. Enabled by default. Set to false to opt out of generated row, column, and timeline menu items while keeping application-provided RevoGrid context menu configuration untouched.
allowedDependencyTypesreadonly DependencyType[] | undefinedNoRestricts which dependency types the user may create.
resourceFilterIdsreadonly string[] | undefinedNoFilters the resource list to only show selected resources.
resourcePlanningGanttResourcePlanningConfig | undefinedNoResource planning row view and load bar options.
dateFormatsGanttDateFormatConfig | undefinedNoProject-level date display and parsing preferences.
labelsGanttLabelsConfig | undefinedNoBuilt-in Gantt UI label overrides for localization.
visualsGanttVisualConfig | undefinedNoVisual appearance options — see {@link GanttVisualConfig}.

Related types: DependencyType, EntityId, GanttContextMenuConfig, GanttDateFormatConfig, GanttLabelsConfig, GanttResourcePlanningConfig, GanttSchedulingConfig, GanttSnapConfig, GanttVisualConfig, ResourceId, TaskType, TimelineZoomConfig, TimelineZoomPreset

interface

Resource planning/load view configuration.

export interface GanttResourcePlanningConfig {
/** When `true`, the grid projects one row per resource instead of one row per task. */
readonly enabled?: boolean;
/** Restrict the resource planning rows to these resources. */
readonly visibleResourceIds?: readonly ResourceId[];
/** Load bucket size. `day` shows one bar per day; `week` aggregates by calendar week. */
readonly loadGranularity?: 'day' | 'week';
/** Capacity threshold display. */
readonly capacityDisplay?: 'line' | 'none';
/** How over-allocation is shown on load bars. */
readonly overAllocationDisplay?: 'highlight' | 'none';
}
MemberType / returnRequiredDefaultDescription
enabledboolean | undefinedNoWhen true, the grid projects one row per resource instead of one row per task.
visibleResourceIdsreadonly string[] | undefinedNoRestrict the resource planning rows to these resources.
loadGranularity"day" | "week" | undefinedNoLoad bucket size. day shows one bar per day; week aggregates by calendar week.
capacityDisplay"line" | "none" | undefinedNoCapacity threshold display.
overAllocationDisplay"none" | "highlight" | undefinedNoHow over-allocation is shown on load bars.

Related types: ResourceId

interface

Scheduling engine configuration.

export interface GanttSchedulingConfig {
/**
* When enabled, task duration is evaluated in working days only,
* excluding calendar holidays and non-working weekdays.
*/
readonly excludeHolidaysFromDuration?: boolean;
/** Default task mode when a source row does not explicitly set `taskMode`. */
readonly taskModeDefault?: 'auto' | 'manual';
/**
* Behaviour for dependency violations on auto-scheduled tasks.
* Both modes keep effective dates dependency-valid; `warn` additionally
* creates diagnostics so the UI can explain why the task moved.
*/
readonly autoDependencyViolationBehavior?: 'clamp' | 'warn';
/**
* Behaviour for dependency violations on manually scheduled tasks.
* Manual tasks preserve authored dates; this option controls whether the
* violation is surfaced to users.
*/
readonly manualDependencyViolationBehavior?: 'warn' | 'ignore';
/** Calendar basis used for dependency lag/lead. */
readonly lagCalendar?: 'calendar-days' | 'working-days';
/** Direction of scheduling. */
readonly scheduleFrom?: 'project-start' | 'project-finish';
/** Optional project start anchor used by forward scheduling policies. */
readonly projectStartDate?: ISODateString;
/** Optional project finish anchor used by backward scheduling policies. */
readonly projectFinishDate?: ISODateString;
/**
* Resource capacity policy.
* `warn` reports over-allocation; `auto` shifts eligible forward-scheduled
* auto tasks. Backward/project-finish schedules remain warning-only.
*/
readonly resourceLeveling?: 'off' | 'warn' | 'auto';
/** When true, auto-leveling only delays tasks up to their pre-leveling total slack. */
readonly resourceLevelingWithinSlack?: boolean;
/** Default task type used for work/duration/unit calculations. Defaults to `fixed-duration`. */
readonly effortModeDefault?: TaskEffortMode;
/** Progress-aware scheduling policy for actual start and remaining duration fields. Actual finish is always authoritative. */
readonly progressRescheduling?: 'off' | 'remaining-duration';
}
MemberType / returnRequiredDefaultDescription
excludeHolidaysFromDurationboolean | undefinedNoWhen enabled, task duration is evaluated in working days only, excluding calendar holidays and non-working weekdays.
taskModeDefault"manual" | "auto" | undefinedNoDefault task mode when a source row does not explicitly set taskMode.
autoDependencyViolationBehavior"clamp" | "warn" | undefinedNoBehaviour for dependency violations on auto-scheduled tasks. Both modes keep effective dates dependency-valid; warn additionally creates diagnostics so the UI can explain why the task moved.
manualDependencyViolationBehavior"warn" | "ignore" | undefinedNoBehaviour for dependency violations on manually scheduled tasks. Manual tasks preserve authored dates; this option controls whether the violation is surfaced to users.
lagCalendar"calendar-days" | "working-days" | undefinedNoCalendar basis used for dependency lag/lead.
scheduleFrom"project-start" | "project-finish" | undefinedNoDirection of scheduling.
projectStartDateISODateString | undefinedNoOptional project start anchor used by forward scheduling policies.
projectFinishDateISODateString | undefinedNoOptional project finish anchor used by backward scheduling policies.
resourceLeveling"auto" | "warn" | "off" | undefinedNoResource capacity policy. warn reports over-allocation; auto shifts eligible forward-scheduled auto tasks. Backward/project-finish schedules remain warning-only.
resourceLevelingWithinSlackboolean | undefinedNoWhen true, auto-leveling only delays tasks up to their pre-leveling total slack.
effortModeDefaultTaskEffortMode | undefinedNoDefault task type used for work/duration/unit calculations. Defaults to fixed-duration.
progressRescheduling"off" | "remaining-duration" | undefinedNoProgress-aware scheduling policy for actual start and remaining duration fields. Actual finish is always authoritative.

Related types: TaskEffortMode

interface

export interface GanttSnapConfig {
/** Unit used for timeline interaction snapping. Defaults to `timelinePrecision`. */
readonly unit?: 'day' | 'hour';
/** When `true`, snapping skips calendar holidays, closed weekdays, and closed hours. Defaults to `true`. */
readonly workingTime?: boolean;
}
MemberType / returnRequiredDefaultDescription
unit"hour" | "day" | undefinedNoUnit used for timeline interaction snapping. Defaults to timelinePrecision.
workingTimeboolean | undefinedNoWhen true, snapping skips calendar holidays, closed weekdays, and closed hours. Defaults to true.

interface

Detail payload for indent/outdent events.

export interface GanttTaskHierarchyActionDetail {
/** Target task id (defaults to the currently selected task). */
readonly taskId?: TaskId;
/** Target task ids for bulk task actions. */
readonly taskIds?: readonly TaskId[];
}
MemberType / returnRequiredDefaultDescription
taskIdstring | undefinedNoTarget task id (defaults to the currently selected task).
taskIdsreadonly string[] | undefinedNoTarget task ids for bulk task actions.

Related types: TaskId

type

export type GanttTaskModeOption = 'auto' | 'manual';

type

Flat authored task row shape consumed from grid.source by Gantt.

export type GanttTaskSourceRow = GanttTaskSourceBase & (
| { readonly duration: number | string }
| { readonly endDate: ISODateString | ISODateTimeString }
);

interface

Context supplied when building task-bar tooltip content. The task name is rendered as the tooltip title outside hook output.

export interface GanttTaskTooltipContext extends GanttTaskBarVisualContext {
/** Current Gantt project/config, when available. */
readonly project?: GanttPluginConfig | null;
/** Built-in fields used by the fallback tooltip body. */
readonly defaultFields: readonly GanttTaskTooltipField[];
/** Newline-delimited fallback tooltip body, excluding the task title. */
readonly defaultTooltip: string;
}
MemberType / returnRequiredDefaultDescription
projectGanttPluginConfig | null | undefinedNoCurrent Gantt project/config, when available.
defaultFieldsreadonly GanttTaskTooltipField[]YesBuilt-in fields used by the fallback tooltip body.
defaultTooltipstringYesNewline-delimited fallback tooltip body, excluding the task title.

Related types: GanttPluginConfig, GanttTaskBarVisualContext, GanttTaskTooltipField

type

A built-in tooltip field id, or a field descriptor with a custom label.

export type GanttTaskTooltipField = GanttTaskTooltipFieldId | GanttTaskTooltipFieldConfig;

Related types: GanttTaskTooltipFieldConfig, GanttTaskTooltipFieldId

interface

export interface GanttTaskTooltipFieldConfig {
/** Built-in task field to render in the task-bar tooltip at this position. */
readonly field: GanttTaskTooltipFieldId;
/** Optional label override. Set to an empty string to render only the value. */
readonly label?: string;
}
MemberType / returnRequiredDefaultDescription
fieldGanttTaskTooltipFieldIdYesBuilt-in task field to render in the task-bar tooltip at this position.
labelstring | undefinedNoOptional label override. Set to an empty string to render only the value.

Related types: GanttTaskTooltipFieldId

type

export type GanttTaskTooltipFieldId =
/** Legacy combined line: task name and completion percent. Prefer the always-visible tooltip title. */
| 'summary'
/** Task name. */
| 'name'
/** Completion percentage. */
| 'percentDone'
/** Human-readable task kind, such as Task, Summary, or Milestone. */
| 'taskType'
/** Human-readable task status. */
| 'status'
/** Scheduled task start date, formatted through `gantt.dateFormats.tooltip`. */
| 'startDate'
/** Scheduled task end date, formatted through `gantt.dateFormats.tooltip`. */
| 'endDate'
/** Duration in days with a singular/plural day suffix. */
| 'duration'
/** Scheduling mode label, either Auto Scheduled or Manually Scheduled. */
| 'taskMode'
/** Scheduling warnings joined into one tooltip line. Skipped when empty. */
| 'schedulingWarnings'
/** Formatted task cost. Skipped when empty. */
| 'cost'
/** Comma-separated assignee names. Skipped when empty. */
| 'assignees';

type

Callback that replaces the task-bar tooltip body below the always-visible task title. Return null or undefined to fall back to taskTooltipFields or the default tooltip.

export type GanttTaskTooltipHook = (context: GanttTaskTooltipContext) => string | null | undefined;

Related types: GanttTaskTooltipContext

interface

A highlighted date range rendered as a coloured band on the timeline. Use to mark sprints, milestones windows, or other periods of interest.

export interface GanttTimeRange {
/** Unique identifier. */
readonly id: string;
/** Range start date (inclusive). */
readonly startDate: ISODateString;
/** Range end date (inclusive). */
readonly endDate: ISODateString;
/** Optional label displayed inside the range band. */
readonly label?: string;
/** Optional CSS colour for the range band. */
readonly color?: string;
}
MemberType / returnRequiredDefaultDescription
idstringYesUnique identifier.
startDateISODateStringYesRange start date (inclusive).
endDateISODateStringYesRange end date (inclusive).
labelstring | undefinedNoOptional label displayed inside the range band.
colorstring | undefinedNoOptional CSS colour for the range band.

function

export function hasCustomGanttEditorDateFormat(project: Pick<GanttPluginConfig, 'dateFormats'> | null | undefined): boolean;
ParameterTypeRequiredDefaultDescription
projectPick<GanttPluginConfig, "dateFormats"> | null | undefinedYes

Related types: GanttPluginConfig

function

export function parseGanttDateInput(value: unknown, project: Pick<GanttPluginConfig, 'timeZone' | 'dateFormats'> | null | undefined, surface: GanttDateFormatSurface, field?: string): ISODateString | ISODateTimeString | null;
ParameterTypeRequiredDefaultDescription
valueunknownYes
projectPick<GanttPluginConfig, "timeZone" | "dateFormats"> | null | undefinedYes
surfaceGanttDateFormatSurfaceYes
fieldstring | undefinedNo

Related types: GanttDateFormatSurface, GanttPluginConfig

interface

Complete grid configuration bundle containing projected row data, the timeline scale config, and scheduling results.

export interface TaskGridConfig {
/** The projected grid rows (one per visible task). */
readonly source: readonly DataType[];
/** Timeline scale configuration for the gantt column. */
readonly scale: TaskGridScaleConfig;
/** Scheduling engine output. */
readonly scheduling: SchedulingResult;
}
MemberType / returnRequiredDefaultDescription
sourcereadonly DataType[]YesThe projected grid rows (one per visible task).
scaleTaskGridScaleConfigYesTimeline scale configuration for the gantt column.
schedulingSchedulingResultYesScheduling engine output.

Related types: SchedulingResult, TaskGridScaleConfig

interface

Pre-computed timeline scale and view-model for the gantt grid.

export interface TaskGridScaleConfig {
/** The timeline scale instance used for coordinate calculations. */
readonly scale: TimelineScale;
/** The derived view-model consumed by the gantt column type renderer. */
readonly timeline: GanttTimelineViewModel;
/** ISO date string of the timeline start boundary. */
readonly startDate: ISODateString;
/** ISO date string of the timeline end boundary. */
readonly endDate: ISODateString;
}
MemberType / returnRequiredDefaultDescription
scaleTimelineScaleYesThe timeline scale instance used for coordinate calculations.
timelineGanttTimelineViewModelYesThe derived view-model consumed by the gantt column type renderer.
startDateISODateStringYesISO date string of the timeline start boundary.
endDateISODateStringYesISO date string of the timeline end boundary.

Related types: TimelineScale

interface

export interface TaskGridScaleOptions {
/** First day of week for weekly timeline cells. `0` is Sunday and `1` is Monday. Defaults to Sunday. */
readonly weekStartsOn?: 0 | 1;
}
MemberType / returnRequiredDefaultDescription
weekStartsOn0 | 1 | undefinedNoFirst day of week for weekly timeline cells. 0 is Sunday and 1 is Monday. Defaults to Sunday.