addEvent
Description
새로운 이벤트를 추가합니다
addEvent: (event: any) => string
Parameters
event- (required) object - 이벤트 객체
Returns
id- (string) - 이벤트의 id
Example
scheduler.addEvent({
start_date: "2027-06-16 09:00",
end_date: "2027-06-16 12:00",
text: "Meeting",
holder: "John", // userdata
room: "5" // userdata
});
Related samples
Details
노트
이 메서드는 onEventAdded 또는 onEventChanged 이벤트를 트리거합니다
이벤트 객체는 다음과 같은 속성을 포함할 수 있습니다:
start_date- (Date,string) 이벤트가 시작될 예정인 날짜. 속성이 문자열로 지정되면 "%d-%m-%Y %H:%i" 형식을 사용해야 합니다(기본 형식을 변경하려면api_date옵션을 사용). recurring events의 경우start_date속성의 값은 Date 타입이어야 합니다.end_date- (Date,string) 이벤트가 완료될 예정인 날짜. 속성이 문자열로 지정되면 "%d-%m-%Y %H:%i" 형식을 사용해야 합니다(기본 형식을 변경하려면api_date옵션을 사용). recurring events의 경우end_date속성의 값은 Date 타입이어야 합니다.text- (string) 이벤트의 텍스트.id- (string) 이벤트의 id. 명시하지 않으면 이벤트의 id가 자동으로 생성됩니다.userdata- (hash) 'key-value' 쌍으로 표현된 사용자 정의 속성의 모음.
Related API
Related Guides
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.