본문으로 건너뛰기

getLayoutView

Description

레이아웃 뷰의 이름으로 해당 객체를 반환합니다

getLayoutView: (name: string) => any

Parameters

  • name - (required) string - 레이아웃 뷰의 이름

Returns

  • view - (object) - 레이아웃 뷰의 객체

Example

gantt.getLayoutView("resourceTimeline").posFromDate(new Date(2025, 05, 08));
// 반환 값: 210

gantt.getLayoutView("resourceTimeline").dateFromPos(210);
// 반환 값: 2025년 6월 8일

Details

메서드는 레이아웃 뷰의 반환된 객체에 몇 가지 메서드를 적용할 수 있게 해줍니다. 메서드는:

  • dateFromPos - 뷰에서 지정된 수평 위치의 날짜를 얻습니다
  • posFromDate - 뷰에서 지정된 날짜의 상대적 수평 위치를 얻습니다
  • getScale - 뷰의 시간 축 구성을 반환합니다

지정된 위치로 뷰를 스크롤하려면 scrollLayoutCell 메서드를 적용합니다.

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.