It's small component for change work time scheduler. Preview:
See and try example here.
- angular 7+
- bootstrap 4+
To install this library, run:
$ npm install work-time --save
In your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import
import { WorkTimeModule } from 'work-time';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
WorkTimeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once WorkTimeModule is imported, you can use <work-time>
component:
import { WorkTimeType } from "work-time";
// ...
public data = [];
public workTimeType = WorkTimeType.REGULAR;
public readOnly = false;
<work-time
[(ngModel)]="data"
[workTimeType]="workTimeType"
[readonly]="readOnly"></work-time>
MIT © Pavel Gurov