An open API service indexing awesome lists of open source software.

https://github.com/gurov/work-time

Work time schedule on the Angular 7+
https://github.com/gurov/work-time

angular angular7 typescript

Last synced: 8 months ago
JSON representation

Work time schedule on the Angular 7+

Awesome Lists containing this project

README

          

# work-time
It's small component for change work time scheduler. Preview:
![work-time preview](https://gurov.github.io/work-time/work-time-example.png)

See and try example [here](https://gurov.github.io/work-time/).

## Required libs
* angular 7+
* bootstrap 4+

## Installation

To install this library, run:

```bash
$ npm install work-time --save
```

In your Angular `AppModule`:

```typescript
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 `` component:

###### Component
```typescript
import { WorkTimeType } from "work-time";
// ...
public data = [];
public workTimeType = WorkTimeType.REGULAR;
public readOnly = false;
```

###### Template
```html

```

## License

MIT © [Pavel Gurov](mailto:lucius.gu@ya.ru)