0.1.5-h • Published 6 years ago

ng-scheduler v0.1.5-h

Weekly downloads
188
License
-
Repository
-
Last release
6 years ago

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.

Weekly Example Daily Example

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. Default true.
  • showHours (bool, optional) - Show hours below employee name. Default true.
  • centerShifts (bool, optional) - Toggles whether shifts aligned at the top or middle. Default true.
  • daily (bool, optional) - Force daily version. Default false.

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. changed is the object from ngOnChanges.
  • dateChanged(obj) - Called when the dates are changed. obj includes start_day and end_day.
  • scheduleClicked(shift) - Called when a schedule is clicked.
  • dateClicked(date) - Called when a date is clicked.
0.1.5-h

6 years ago

0.1.5-g

6 years ago

0.1.5-f

6 years ago

0.1.5-d

6 years ago

0.1.5-c

6 years ago

0.1.5-b

6 years ago

0.1.5-a

6 years ago

0.1.4-z

6 years ago

0.1.4-y

6 years ago

0.1.4-x

6 years ago

0.1.4-w

6 years ago

0.1.4-v

6 years ago

0.1.4-u

6 years ago

0.1.4-t

6 years ago

0.1.4-r

6 years ago

0.1.4-q

6 years ago

0.1.4-p

6 years ago

0.1.4-o

6 years ago

0.1.4-n

6 years ago

0.1.4-m

6 years ago

0.1.4-l

6 years ago

0.1.4-k

6 years ago

0.1.4-j

6 years ago

0.1.4-i

6 years ago

0.1.4-h

6 years ago

0.1.4-g

6 years ago

0.1.4-f

6 years ago

0.1.4-e

6 years ago

0.1.4-d

6 years ago

0.1.4-c

6 years ago

0.1.4-b

6 years ago

0.1.4-a

6 years ago

0.1.4

6 years ago

0.1.3-b

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6-b

6 years ago

0.0.6-a

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago