0.1.5-h • Published 5 years ago

ng-scheduler v0.1.5-h

Weekly downloads
188
License
-
Repository
-
Last release
5 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

5 years ago

0.1.5-g

5 years ago

0.1.5-f

5 years ago

0.1.5-d

5 years ago

0.1.5-c

5 years ago

0.1.5-b

5 years ago

0.1.5-a

5 years ago

0.1.4-z

5 years ago

0.1.4-y

5 years ago

0.1.4-x

5 years ago

0.1.4-w

5 years ago

0.1.4-v

5 years ago

0.1.4-u

5 years ago

0.1.4-t

5 years ago

0.1.4-r

5 years ago

0.1.4-q

5 years ago

0.1.4-p

5 years ago

0.1.4-o

5 years ago

0.1.4-n

5 years ago

0.1.4-m

5 years ago

0.1.4-l

5 years ago

0.1.4-k

5 years ago

0.1.4-j

5 years ago

0.1.4-i

5 years ago

0.1.4-h

5 years ago

0.1.4-g

5 years ago

0.1.4-f

5 years ago

0.1.4-e

5 years ago

0.1.4-d

5 years ago

0.1.4-c

5 years ago

0.1.4-b

5 years ago

0.1.4-a

5 years ago

0.1.4

5 years ago

0.1.3-b

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6-b

5 years ago

0.0.6-a

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago