3.5.5 • Published 2 years ago

comrax-alex-airbnb-calendar v3.5.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

AirbnbCalendar

You can find online running demo here.

Usage

Install or add via ng

ng add ngx-airbnb-calendar

Then add AirbnbCalendarModule into your AppModule

import { AirbnbCalendarModule } from 'ngx-airbnb-calendar';

@NgModule({
  imports: [BrowserModule, AirbnbCalendarModule],
  declarations: [AppComponent]
})
export class AppModule {}

Set options in your component:

import { Component } from '@angular/core';
import { CalendarOptions } from 'ngx-airbnb-calendar';

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html'
})
export class AppComponent {
  options: CalendarOptions = {
    firstCalendarDay: 1,
    format: 'dd-LL-yyyy'
  };
}

And use airbnb-calendar directive on your <input />

<input type="text" [(ngModel)]="value" airbnb-calendar [options]="options" />

Available Options

OptionDescriptionValue TypeDefault Value
minDateMinimum date available for selectionDatenull
maxDateMaximum date available for selectionDatenull
minYearMinimal shown year in calendarnumbernull
maxYearMaximum shown year in calendarnumbernull
formatdate-fns format used to generate ngModel valuestringyyyy/LL/dd
formatTitledate-fns format used to display month and year in calendar controlsstringMMMM uuuu
formatDaysdate-fns format used to display day names in calendar headerstringeeeeee
firstCalendarDayOptions to configure first day in calendar, ie 0 for Sunday or 1 for Mondaynumber0
localedate-fns locale for days and months translationLocaleenUS
closeOnSelectedOption enables auto close calendar on date range selectionbooleanfalse

License

MIT

3.5.5

2 years ago

3.5.4

3 years ago

3.4.4

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.4.3

3 years ago

3.4.2

3 years ago

3.3.2

3 years ago

3.2.0

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.9

3 years ago

3.1.8

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

1.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago