Vue-scheduler-lite

A very simple scheduler for vue.js


Support

Business-day Support

Business-hours Support

Drag and Drop Support

Resize Schedule Support

Touch Device Support(Require DragDropTouch.js)

Github

Demo

Example Sample Demo

Get Start

  1. Use CDN vue.js
    1. Download and include vue-scheduler-lite.jsandstyle.css from here

      <script src="vue-scheduler-lite.js" type="text/javascript" language="javascript"></script>
       <link rel="stylesheet" href="style.css" />
    2. push to your vue components object

      components: { 'vue-scheduler-lite': vueSchedulerLite }
    3. enjoy it!

      <vue-scheduler-lite :schedule-data="data" :setting="settingData" />
  2. Use NPM
    1. npm install vue-scheduler-lite --save
    2. add to your project

      import VueSchedulerLite from 'vue-scheduler-lite'
    3. enjoy it!

      <vue-scheduler-lite :schedule-data="data" :setting="settingData" />

SettingData

nameTypedescription
startDateStringschedule start date(YYYY/MM/DD)
endDateStringschedule end date(YYYY/MM/DD)
weekdayTextArrayDate weekday
unitIntegerminuite time line cell
borderWIntegercell border width(px)
dateDivHIntegerDate cell height(px)
timeDivHIntegerTime cell height(px)
unitDivWIntegerSelect cell width(px)
titleDivWIntegertitle cell width(%)
rowHIntegerRow height(px)

Event

nameTypedescription
row-click-eventFunctionTitle div click event
date-click-eventFunctionDate div click event
click-eventFunctionSchedule bar click event
add-eventFunctionNew schedule add event
move-eventFunctionSchedule move event
edit-eventFunctionSchedule edit event
delete-eventFunctionSchedule delete event

Schedule Data

nameTypedescription
titleStringVisible Text Schedule Bar
noBusinessDateArrayNot business-day list(All day)
businessHoursArrayBusiness-hours(One day)
startStringBusiness start hours(HH:ii)
endStringBusiness end hours(HH:ii)
scheduleArrayadd schedule data
startStringtime String(HH:ii)
endStringtime String(HH:ii)
textStringShow Text
dataObject,Arraycallback data Object