# ng-daterangepicker-ext

> Angular PayPal Datepicker

Latest version **1.2.4** (published 2017-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-daterangepicker-ext
pnpm add ng-daterangepicker-ext
yarn add ng-daterangepicker-ext
bun add ng-daterangepicker-ext
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2017-07-03 |
| First published | 2017-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jan Kuri |
| Maintainers | smasala |
| Keywords | Angular, date, datepicker, range, daterange, daterangepicker |

## Links

- npm: https://www.npmjs.com/package/ng-daterangepicker-ext
- Repository: https://github.com/smasala/ng-daterangepicker
- Homepage: https://github.com/smasala/ng-daterangepicker#readme
- Issues: https://github.com/smasala/ng-daterangepicker/issues
- npm.io page: https://npm.io/package/ng-daterangepicker-ext

## Dependencies (1)

- [date-fns](https://npm.io/package/date-fns.md) ^1.28.0

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.2.4 (latest) — 2017-07-03
- 1.2.3 — 2017-07-03
- 1.2.2 — 2017-06-06
- 1.2.1 — 2017-06-06
- 1.2.0 — 2017-06-06
- 1.1.2 — 2017-05-31
- 1.1.1 — 2017-05-31
- 1.1.0 — 2017-05-31
- 1.0.0 — 2017-05-31

## README

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

```sh
npm install ng-daterangepicker2 --save
```

or

```sh
yarn add ng-daterangepicker2 --save
```

### Example

```ts
import { NgDateRangePickerModule } from 'ng-daterangepicker';

// app.module.ts
@NgModule({
  ...
  imports: [ ..., NgDateRangePickerModule, ... ],
  ...
})
export class AppModule { }
```

```ts
// 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

}
```

```html
<!-- app.component.html -->
<ng-daterangepicker [(ngModel)]="value" [options]="options"></ng-daterangepicker>
```

### Configuration

```ts
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

```sh
git clone https://github.com/jkuri/ng-daterangepicker.git --depth 1
cd ng-daterangepicker
npm start
```

### Licence

MIT

---
_Source: https://npm.io/package/ng-daterangepicker-ext · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
