Element: <oj-gantt-row>

Oracle® JavaScript Extension Toolkit (JET)
16.0.0

F83701-01

Since:
  • 5.2.0
Module:
  • ojgantt

QuickNav

Attributes


JET Gantt Row

The oj-gantt-row element is used to declare properties for gantt rows and is only valid as the child of a template element for the rowMappingTemplate slot of oj-gantt.


<oj-gantt row-data="[[rowDataProvider]]">
  <template slot="rowMappingTemplate">
    <oj-gantt-row
      label="[[$current.data.resource]]"
      tasks="[[$current.data.tasks]]"
      reference-objects="[[$current.data.unavailabilities]]">
    </oj-gantt-row>
  </template>
</oj-gantt>


Usage

Signature:

interface GanttRowElement<K3=any,D3=any> extends dvtTimeComponent<ojGanttRowSettableProperties<K3,D3>

Generic Parameters
ParameterDescription
K3Type of key of the rowData dataprovider
D3Type of data from the rowData dataprovider
Typescript Import Format
//To typecheck the element APIs, import as below.
import { GanttRowElement } from "ojs/ojgantt";

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

For additional information visit:


Attributes

label :string

The label associated with the row.
Default Value:
  • ""

(nullable) label-style :Partial<CSSStyleDeclaration>

The CSS style defining the style of the label. Only CSS style applicable to SVG elements can be used. The following style properties are supported: color, cursor, fontFamily, fontSize, fontStyle, fontWeight, textDecoration.
Default Value:
  • {}

reference-objects :Array.<Object>

The reference objects associated with the row. This is optional and is only used if data is set using row-data attribute.
Default Value:
  • []

(nullable) short-desc :(string | ((context: ojGantt.RowShortDescContext<K3,D3>) => string))

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

tasks :Array.<Object>

The tasks associated with the row. This is required if data is set using row-data attribute.
Default Value:
  • []