0.0.7 • Published 5 years ago

ng-alice-date-range v0.0.7

Weekly downloads
28
License
-
Repository
-
Last release
5 years ago

Ng Alice Date Range

This component is part of Alice angular component library

Dependencies

MOMENT Make sure you have installed the latest version on momentjs

npm install moment

Install

npm install ng-alice-date-range

Properties

NameDescriptionDefault
titleTitle of the pop calendarDate Range
minDatethe min date the calendar can use-2 year from current date
maxDatethe max date the calendar can use2 year from current date
startDatethe start date date selectednull
endDatethe end date date selectednull
alignmentthe location of the popup calendar \n options: 'top left','top right', 'bottom left', 'bottom right''top left'
allowForeverto allow the user to select only the start date and the end date will be until the max datefalse

Events

NameDescriptionOutput
selectedDatesthis event will fire when the apply button is clicked{startDate: <ISO DATE>, endDate: <ISO DATE>}

Example

After installing ng-alice-date-range

app.module.ts

import { NgAliceDateRangeModule } from 'ng-alice-date-range';
...

@NgModule({
  ...
  imports: [
    ...
    NgAliceDateRangeModule
  ]
  ...

})

HTML

<ng-alice-date-range alignment="bottom left" startDate="4/4/2019" endDate=:"4/4/2020" (selectedDates)="output($event)">
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago