1.0.2 • Published 3 years ago

eos_vue_scheduler v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

eos_vue_scheduler

A Vue component to display an event scheduling diary

Main component is the CalendarContainer This takes 3 props 1. A user array consisting of a user object containing a user ID and a user name 2. An events array 3. A calendar options object

User Object

PropertyType (description)
idString (user id)
nameString

Event Object

PropertyType (description)
idString (event id)
user_idString
titleString (event title)
descriptionString (a description for the event)
colorString (a hex color for the event)
start_timeString (a start time and date for the event in the format YYY-MM-DD HH:mm:ss)
end_timeString (an end time and date for the event in the same format as start time)

Calendar Options Object

PropertyType (description)
modeString (either of 'week' or 'day')
five_minute_heightNumber (the number of pixels to represent 5 minutes on the calendar)
start_hourNumber (the hour to start the day)
end_hourNumber (the hour to end the day)
focus_dateString (date the calendar will set as the current date)
primary_colorString (hex color for the current day)

Events

EventDescription
cellClickemitted when an empty cell is clicked, use to book an event
eventClickemitted when an event is clicked, use to update or delete an event
EventPayload
cellClickcellData { index (Number), value ( String 'YYYY-MM-DD HH:mm:ss')}
evnetClickevent (an event object)