GanttViewProps

Represents the required props which every GanttView must accept.

NameTypeDefaultDescription

dateRange?

DateRange | (args: GanttViewDateRangeArgs) => DateRange

Overrides the dateRange calculated by the Gantt component.

If a function is passed, an object of type GanttViewDateRangeArgs will be passed.

name?

string

The name property is used by the Gantt to match which view is selected. Every view has a default name.

slotWidth?

number

The width of a single time slot in pixels. Default is 100px.

timelineHeaderCell?

React.ComponentType<GanttViewTimelineHeaderCellProps>

The component to be rendered in header cells of the timeline part of the Gantt.

title?

string | (localization: LocalizationService) => string

The title to be displayed in the view selection list in the Toolbar. If a function is passed, it will receive a [LocalizationService]({ slug api_intl_localizationservice }) as an argument

workDayEnd?

string

Sets the end of the work day.

workDayStart?

string

Sets the start of the work day.

workWeekEnd?

Day

The end of the work week.

workWeekStart?

Day

The start of the work week.