ng-scheduler v0.1.5-h
Angular Scheduler
Simple weekly schedule display. This is just a display. Adding shifts, employees, etc. would be handled on your end. Switches from weekly to daily based on browser size.

Installation
npm install ng-scheduler
Add SchedulerModule to your modules.
<ng-scheduler [options]="schedulerOptions"></ng-scheduler> in your HTML.
Arguments
Options
shifts(SchedulerShifts[]) - Array of SchedulerShifts.employees(string[]) - Array of strings.start_day(datetime, optional) - Start of week. Default based on current week.end_day(datetime, optional) - End of week. Default based on current week.showEarnings(bool, optional) - Show earnings below employee name. Defaulttrue.showHours(bool, optional) - Show hours below employee name. Defaulttrue.centerShifts(bool, optional) - Toggles whether shifts aligned at the top or middle. Defaulttrue.daily(bool, optional) - Force daily version. Defaultfalse.
SchedulerShifts
id(any, optional) - A unique identifier.start_time(datetime) - Start of shift.end_time(datetime) - End of shift.hours(decimal, optional) - Number of hours worked in decimal form.earnings(decimal, optional) - Earnings.
Callbacks
optionsChanged(changes)- Called whenever the options are changed.changedis the object fromngOnChanges.dateChanged(obj)- Called when the dates are changed. obj includesstart_dayandend_day.scheduleClicked(shift)- Called when a schedule is clicked.dateClicked(date)- Called when a date is clicked.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago