how to add Switching Day/Week View just link in AngularJS Event Calendar (Open-Source)
To switch the view, you just need to change the viewType value and call update(), like this:
Switch to day view:
dp.viewType = "Day"; dp.update();
Switch to week view:
dp.viewType = "Week"; dp.update();
i see i am not a programmer, could you please write complete code.
var dp = new DayPilot.Scheduler("dp"); dp.viewType = "Days"; dp.days = 30; dp.update(); dp.init();