Zum Hauptinhalt springen

Erweiterung zur Tastaturnavigation

Details zur Tastaturnavigations-Erweiterung finden Sie im Artikel Tastaturnavigation.

Das keyboardNavigation-Objekt besitzt die folgende API:

Methoden

  • focus (config): void - ermöglicht die Auswahl jeder Zelle im Raster. Funktioniert nur, wenn das Raster bereits den Fokus hat

    • config - (object) - das Konfigurationsobjekt
      • id - (number | string) - die ID einer bearbeiteten Aufgabe
      • column - (string) - der Spaltenname
      • type - (string) - Typ des Geltungsbereichs. Mögliche Werte: "gantt", "taskRow", "taskCell", "headerCell"
gantt.ext.keyboardNavigation.focus({type:"taskCell",id:"taskId",column:"columnName"});

Beispiel Auswahl einer Rasterzelle

  • getActiveNode (): boolean | void - ermöglicht das Abrufen von Informationen zur aktiven Zelle
var active_node = gantt.ext.keyboardNavigation.getActiveNode();
// -> {type: "taskCell", id: "10", column: "text"}

Beispiel Aktive Zelle abrufen

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.