1.0.2 • Published 5 years ago

work-time v1.0.2

Weekly downloads
13
License
MIT
Repository
github
Last release
5 years ago

work-time

It's small component for change work time scheduler. Preview: work-time preview

See and try example here.

Required libs

  • angular 7+
  • bootstrap 4+

Installation

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 { }

Using

Once WorkTimeModule is imported, you can use <work-time> component:

Component
import { WorkTimeType } from "work-time";
// ...
public data = [];
public workTimeType = WorkTimeType.REGULAR;
public readOnly = false;
Template
<work-time
      [(ngModel)]="data"
      [workTimeType]="workTimeType"
      [readonly]="readOnly"></work-time>

License

MIT © Pavel Gurov

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.5.2

6 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago