Big Gantt charts

Row Management and Layout Control in ScheduleJS

January 17th, 2025 - 2-3 minutes read

Controlling Row Height

In ScheduleJS, controlling a Row height works exactly as it does in FlexGanttFX. You can use the Row.setHeight method from the Row class to programmatically adjust the height of any Row in your Gantt chart.

The video below demonstrates how you can use it to create features that instantly modify the graphics rows heights with a button:

Different layout types per Row

ScheduleJS supports displaying different layout types (GanttLayout, ChartLayout) for any Row or even for its inner lines. To do so, you just have to set the layout type at Row creation, just like in FlexGanttFX.

To change the layouts, you can override the getLineLayout method to return the desired layout for the main row or an inner line using line indexes.

More about inner lines

ScheduleJS provides the same LinesManager API found in FlexGanttFX. By default, the library implements two base classes:

  • The EqualLinesManager that handles multiple lines with same height for a Row
  • The AutoLinesManager that will create new inner lines to facilitate the display of stacking activities

Do not hesitate to read other blog articles, read our developer manual, and inspect ScheduleJS objects to find more information about the public methods available to you and explanations about how they should be implemented.

More implementation-related articles

Big Gantt charts

Unlock flexible row management in ScheduleJS: control individual row heights, mix GanttLayout and ChartLayout in the same view.

JS Gantt charts Screenshot

Master drag and drop in ScheduleJS: render activities while dragging, access the drag canvas via DragViewTransversalSystemLayers.

ScheduleJS Logo

ScheduleJS 1.4 release notes. A step forward towards modern Angular app building.

Angular 16 vs Angular 18 comparison: discover what's new in Angular, the arrival of signals, Zoneless mode, zone coalescing, and their impact on your projects.

Discover the Angular Rome Conference: workshops, domain-driven design, signals, state management, micro frontends.

Discover Angular 18: zoneless mode, zone coalescing, native await, and TypeScript 5.4 compatibility.

Gantt Charts

The TOP 3 JavaScript Gantt chart. Discover their features, advantages, and disadvantages to choose the best tool for your project.

sceenschot example appli Gantt charts

Discover how ScheduleJS seamlessly integrated with Selligent CRM, enhancing scheduling efficiency for a leading beauty brand's consultants.

JS Gantt charts example

This article showcases the integration of a ScheduleJS component into an external Ag-Grid table, to demonstrate the flexibility of ScheduleJS.

Big Gantt charts

How to synchronize multiple graphics? Learn how to reuse your ScheduleJS timeline in multiple graphics to keep them synchronized.

S’abonner
Notification pour
guest
0 Commentaires
Commentaires
Show all comments
0
We would love to to have your toughts on this. Please leave a comment below!x