본문으로 건너뛰기

constants

Description

코드에서 매직 넘버 사용을 줄이기 위해 다양한 상수를 저장합니다

constants: any

Example

document.addEventListener("keypress", function(e){
var keys = gantt.constants.KEY_CODES;
if(e.keyCode === keys.ENTER){
// 엔터 입력 시 수행
}
});

Details

매직 넘버 사용을 줄이기 위해 다양한 상수를 저장합니다. 현재는 KEY_CODES 객체만 저장합니다

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.