0.4.4 • Published 3 years ago

ng-dates v0.4.4

Weekly downloads
37
License
-
Repository
github
Last release
3 years ago

NgDates

Ng Dates is a simple date picker for Angular applications. Inspired by Ryanair datepicker, allows you to select a single date or a range of dates from a predeterminated set. Powerful and configurable can be easily integrated into any Angular application.

npm npm npm type definitions

Installation

Download ng-dates from npm

npm install ng-dates

##Usage Import NgDatesModule module in your AppModule

import { NgDatesModule } from 'ng-dates';

Insert ng-dates component in your HTML template

<ng-dates></ng-dates>

Attributes (Input):

All attributes are optional

NameTypeDefaultDescription
fromMomentundefinedRange start date
toMomentundefinedRange end date
minMomentundefinedMinimum selectable date
maxMomentundefinedMax selectable date
currentMomentundefinedCurrent selection
availabilityRule{type: exclude \| include, dates: Moment[]undefinedAllows to narrow the range of selectable dates by including or excluding specific days
startOfWeekNumber0A number from 0 to 6 to indicate the first day of the week (starting with Sunday)
fullBooleantrueShow/Hide prev and next months days.
colorSchemegreen \| red \| NgDatesColors*greenCustomize colors.
* interface NgDatesColors {
  background: string;
  text: string;
  day_selected_bg: string;
  day_selected_bg_light: string;
  day_selected_text: string;
} 

Attributes (Output):

NameEvent ArgumentsDescription
selectedMomentThis event will be emitted when a valid date is clicked

People

Proudly made by CodicePlastico

License

MIT

0.4.4

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago