Skip to main content

isOneDayEvent

Description

Checks whether the specified event one-day or multi-day

isOneDayEvent: (event: any) => boolean

Parameters

  • event - (required) object - the event object

Returns

  • isOneDay - (boolean) - returns true, if the specified event is one-day. Otherwise, false

Example

var eventId = scheduler.addEvent({
start_date: "16-06-2013 09:00",
end_date: "16-06-2013 12:00",
text: "Meeting"
});
scheduler.isOneDayEvent(scheduler.getEvent(eventId));//->true
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.