Zum Hauptinhalt springen

scrollLayoutCell

Description

Verschiebt die Layout-Ansicht an die angegebene Position

scrollLayoutCell: (name: string, x: number | null, y: number | null) => void

Parameters

  • name - (required) string - der Name der Layout-Ansicht
  • x - (required) number | null - optionale horizontale Scroll-Position oder 'null' (wenn die horizontale Position nicht geändert werden soll)
  • y - (required) number | null - optionale vertikale Scroll-Position oder 'null' (wenn die vertikale Position nicht geändert werden soll)

Example

// scrollt die Layout-Ansicht nur horizontal
gantt.scrollLayoutCell("resourceTimeline", 50);

// scrollt die Layout-Ansicht nur vertikal
gantt.scrollLayoutCell("resourceTimeline", null, 50);

// scrollt die Layout-Ansicht sowohl horizontal als auch vertikal
gantt.scrollLayoutCell("resourceTimeline", 100, 100);

Details