Namespace: GanttUtils

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

GanttUtils

Version:
  • 7.1.0
Since:
  • 6.0.0
Module:
  • ojganttutils

Module usage

See JET Module Loading for an overview of module usage within JET.

Javascript Import Format
define(['ojs/ojganttutils'], function(GanttUtils) {
 // Application should call API on GanttUtils 
})
Typescript Import Format
//This namespace exports multiple static methods or members. To import 
import * as GanttUtils from "ojganttutils";

//Now you can access the methods as GanttUtils.methodName and so on

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

Description

This class provides functions needed for aligning an ojTable with an ojGantt.

Methods

(static) .computeTableColumnHeaderHeight(table, gantt, axisInfo) → {number}

Calculate the height required to set on the oj-table column header to match the height of the time axis in oj-gantt.
Parameters:
Name Type Description
table Element the oj-table element
gantt Element the oj-gantt element
axisInfo Object information about the axis in oj-gantt
Properties
Name Type Argument Description
majorAxis Object <optional>
information about the major axis in oj-gantt. See majorAxis in oj-gantt.
Properties
Name Type Argument Description
converter oj.ojTimeAxis.Converters | oj.Converter.<string> <optional>
A converter used to format the labels of the axis.
height number <optional>
The height of the minor axis in pixels. If not specified or invalid, the gantt's default value is assumed.
scale string <optional>
The time scale used for the axis.
zoomOrder Array.<string> <optional>
An array of strings containing the names of scales used for zooming from longest to shortest.
minorAxis Object information about the minor axis in oj-gantt. See minorAxis in oj-gantt.
Properties
Name Type Argument Description
converter oj.ojTimeAxis.Converters | oj.Converter.<string> <optional>
A converter used to format the labels of the axis.
height number <optional>
The height of the minor axis in pixels. If not specified or invalid, the gantt's default value is assumed.
scale string <optional>
The time scale used for the axis.
zoomOrder Array.<string> <optional>
An array of strings containing the names of scales used for zooming from longest to shortest.
Returns:
the height required to set on the oj-table column header to match the height of the time axis in oj-gantt
Type
number