Element: <oj-gantt-dependency>

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

Signature:

class ojGanttDependency

QuickNav

Attributes


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

Version:
  • 7.1.0
Since:
  • 5.2.0
Module:
  • ojgantt

Module usage

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

Typescript Import Format
//To typecheck the element APIs, import as below.
import {ojGanttDependency} from "ojs/ojgantt";

//For the transpiled javascript to load the element's module, import as below
import "ojs/ojgantt";

JET In Typescript

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

JET Gantt Dependency

The oj-gantt-dependency element is used to declare properties for gantt dependency lines and is only valid as the child of a template element for the dependencyTemplate slot of oj-gantt.


<oj-gantt dependency-data="[[dependencyDataProvider]]">
  <template slot="dependencyTemplate">
    <oj-gantt-dependency
      predecessor-task-id="[[$current.data.predecessor]]"
      successor-task-id="[[$current.data.successor]]">
    </oj-gantt-dependency>
  </template>
</oj-gantt>

Attributes

predecessor-task-id :any

The identifier for the predecessor task. This must reference a task in Gantt.

(nullable) short-desc :string

The description of the dependency line. This is used for accessibility.
Default Value:
  • null

successor-task-id :any

The identifier for the successor task. This must reference a task in Gantt.

svg-class-name :string

A space delimited list of CSS style classes to apply to the dependency line.
Default Value:
  • ""

svg-style :CSSStyleDeclaration

The CSS style defining the style of the dependency line.
Default Value:
  • {}

type :"finishStart"|"finishFinish"|"startStart"|"startFinish"

The type of dependency.
Supported Values:
Value Description
"finishFinish" predecessor task must finish before successor task can finish
"finishStart" predecessor task must finish before successor task can start
"startFinish" predecessor task must start before successor task can finish
"startStart" predecessor task must start before successor task can start
Default Value:
  • "finishStart"