1.0.11 • Published 2 years ago

eos_vue_workday v1.0.11

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

eos_vue_workday

A Vue component to display an event scheduling diary

Based on a working day, each working day object will contain its own list of events

  • Allows creation of a schedule for multiple users on each calendar day
  • Allows for for appointments/events to be created only on days with a schedule
  • Allows for custom behaviour in reacting to component events, simply update the workday events array

Main component is the WorkdayContainer This takes 2 props 1. An workday array 2. A workday options object

Workday Object

PropertyType (description)
idString (schedule/workday id)
start_timeString (the start time of the work day)
finish_timeString (the end time of the work day)
breaksArray (and array of break start and end times, cellEvents will not be fired during these times, cursor will show not allowed. NB start and end times must match a cell time)
userObject (a user object see below)
eventsArray (an array of event objects for this day)
otherArray (optional, an array of other objects/data which you can add and which will be included in the cellData payload)

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)

Workday Options Object

PropertyType (description)
modeString (either of 'week' or 'day')
five_minute_heightNumber (the number of pixels to represent 5 minutes on the calendar)
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)
1.0.9

2 years ago

1.0.8

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago