본문으로 건너뛰기

키보드 네비게이션 확장

다음 기사 키보드 내비게이션에서 키보드 네비게이션 확장에 대한 자세한 내용을 확인하십시오.

keyboardNavigation 객체는 아래 API를 가지고 있습니다:

메서드

  • focus (config): void - 그리드의 어떤 셀이라도 선택할 수 있게 해줍니다. 그리드에 이미 포커스가 있는 경우에만 작동합니다

    • config - (object) - 설정 객체
      • id - (number | string) - 편집된 작업의 ID
      • column - (string) - 열 이름
      • type - (string) - 범위의 유형. 가능한 값: "gantt", "taskRow", "taskCell", "headerCell"
gantt.ext.keyboardNavigation.focus({type:"taskCell",id:"taskId",column:"columnName"});

Related sample 그리드 셀 선택하기

  • getActiveNode (): boolean | void - 활성 셀에 대한 정보를 얻을 수 있습니다
var active_node = gantt.ext.keyboardNavigation.getActiveNode();
// -> {type: "taskCell", id: "10", column: "text"}

Related sample 활성 셀 얻기

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.