본문으로 건너뛰기

getState

Description

스케줄러의 현재 상태를 가져옵니다.

getState: () => any

Returns

  • state - (object) - 상태 객체

Example

var mode = scheduler.getState().mode;
if(mode == "day"){
// 여기에 커스텀 로직 작성
}
else {
// 여기에 커스텀 로직 작성
}

Details

상태 객체는 스케줄러의 내부 UI 구성을 나타내며, 다음과 같은 속성들을 포함합니다:

노트

참고: 이 객체를 변경해도 스케줄러의 동작에는 영향을 주지 않습니다.

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.