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+
- Host: GitHub
- URL: https://github.com/gurov/work-time
- Owner: gurov
- Created: 2017-07-10T04:31:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T05:09:40.000Z (about 3 years ago)
- Last Synced: 2024-10-30T02:44:37.669Z (over 1 year ago)
- Topics: angular, angular7, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/work-time
- Size: 4.91 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# work-time
It's small component for change work time scheduler. Preview:

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)