1.2.4 • Published 7 years ago

ng-daterangepicker-ext v1.2.4

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

Note

Forked from: https://github.com/jkuri/ng-daterangepicker and provides extra features (time edit) and bug fixes

Angular DateTimeRange Picker

This date range picker was heavily inspired by PayPal's datepicker as seen on website.

Demo: http://ng-daterangepicker.jankuri.com

Installation

npm install ng-daterangepicker2 --save

or

yarn add ng-daterangepicker2 --save

Example

import { NgDateRangePickerModule } from 'ng-daterangepicker';

// app.module.ts
@NgModule({
  ...
  imports: [ ..., NgDateRangePickerModule, ... ],
  ...
})
export class AppModule { }
// app.component.ts
import { Component, OnInit } from '@angular/core';
import { NgDateRangePickerOptions } from 'ng-daterangepicker';

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html'
})
export class AppComponent {
  options: NgDateRangePickerOptions;  // = {} see NgDateRangePickerOptions

}
<!-- app.component.html -->
<ng-daterangepicker [(ngModel)]="value" [options]="options"></ng-daterangepicker>

Configuration

export interface NgDateRangePickerOptions {
  theme?: 'default' | 'green' | 'teal' | 'cyan' | 'grape' | 'red' | 'gray';
  range?: 'tm' | 'lm' | 'lw' | 'tw' | 'ty' | 'ly';
  dayNames?: string[];
  presetNames?: string[];
  outputFormat?: string;
  startOfWeek?: number;
  showTime?: boolean;
  timeFormat?: 'HH:mm:ss' | 'HH:mm';
  container?: false | string;
}

Running the demo

git clone https://github.com/jkuri/ng-daterangepicker.git --depth 1
cd ng-daterangepicker
npm start

Licence

MIT

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago