search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Scheduler end date set as current

Asked by Anonymous
2 years ago.

Hi I am new to Day Pilot Scheduler.

I have referred this link https://code.daypilot.org/54503/angularjs-timesheet-tutorial-javascript-php

here this link has both javascript (angularjs) and PHP for me, i am working only in angularjs.
so I have replace the PHP function to expressjs.

now what my doubt I don't know how to set the end . for end is set as default by before a current date

here is my scheduler code

$scope.scheduler = {
viewType: "Days",
showNonBusiness: false,
businessBeginsHour: 9,
businessEndsHour: 17,
cellWidthSpec: "Auto",
scale: "CellDuration",
cellDuration: "15",
useEventBoxes: "Never",
days: new DayPilot.Date().dayOfWeek(),
startDate: (new DayPilot.Date().firstDayOfWeek())
}

here i have attached my sample image kindly refere this.
can anyone solve my issue.

Answer posted by Dan Letecky [DayPilot]
2 years ago.

Use:

days: 7,

instead of

days: new DayPilot.Date().dayOfWeek(),
Answer posted by Anonymous
2 years ago.

oh! great that is working nicely

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.