1.0.13 • Published 4 years ago

qp-time-picker v1.0.13

Weekly downloads
38
License
MIT
Repository
github
Last release
4 years ago

TimePicker

This library was generated with Angular CLI version 8.2.14.

That is the latest staple version 1.0.13

links

Images

Imgur Imgur

Usage with Angular CLI

Step 1:

npm i qp-time-picker

Step 2: add this to your app.module

import { TimePickerModule } from 'qp-time-picker';

Step 3: add TimePickerModule to your imports array

Step 4: add your HTML to your component.html

<qp-calender-picker [startsArr]="startsArr" [betweensArr]="betweensArr" [endsArr]="endsArr" (change)="changeTimePicker($event)"></qp-calender-picker>

Step 5: add to your component.ts

  time = {} //----------- time object get time details from
  data: any[];
  startsArr= ['']; //------------ array of hours id that are locked with start flag
  endsArr= ['']; //------------ array of hours id that are locked with end flag
  betweensArr= ['']; //------------ array of hours id that are locked with between flag

  ressval;
  changeTimePicker(time) {
    this.time = time;
    let resTime: any[] = []
    this.ress = resTime = [time.startWith.startWith, time.endWith.endWith, ...time.betweenThem]
    this.ressval = resTime = [time.startWith.value, time.endWith.value]
    let empty = resTime.indexOf('')
    resTime.slice(empty, 1)
  }

Step 6: "./node_modules/bootstrap/dist/css/bootstrap.min.css" to your angular.json or import bootstrap CDN link to your index.html

1.0.11

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

0.0.2

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.1

4 years ago