skip to main content
Programmer's documentation > Advanced globalization > Base text direction: in the JViews Gantt SDK > At the Gantt sheet level
 
At the Gantt sheet level
Base text direction set for the current chart instance is inherited by its Gantt sheet and table components. Each of these components can have its own base text direction, which is used as the default for all their content. You can set base text direction in the Gantt sheet, for example, right to left, with the following code:
chart.getGanttSheet().setBaseTextDirection(IlvBidiUtil.RIGHT_TO_LEFT);
The same result can be achieved by adding the code for the following selector to the CSS file attached to the chart:
sheet {
  baseTextDirection : "Right-To-Left";
}

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.