2.0.0 • Published 10 months ago

@thomascsd/ngx-dot-calendar v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 months ago

@thomascsd/ngx-dot-calendar

npm version npm.io

The project fork from az-idatepicker

Screenshot

Feature

  • Supports Angular v14 and above
  • Support RWD
  • Display dots under the dates based on the provided data.
  • Supports Ivy
  • Supports Standalone mode

Install

  1. install module:
npm install @thomascsd/ngx-dot-calendar
  1. Install peer dependencies:
npm install date-fns

Usage

In app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { NgxDotCalendarModule } from '@thomascsd/ngx-dot-calendar';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxDotCalendarModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
<ngx-dot-calendar [dateContents]="dateContents" (onSelect)="setDate($event)"></ngx-dot-calendar>

API

Attributes

ParameterTypeIs RequiredDefault ValueDescription
dateContentsDateContentyes-Content of the date
formatstringnoYYYY-MM-DDThe date format, default to 'YYYY-MM-DD'
idatePickerBindinganyno-Binding for ngModel
sundayHighlightbooleannofalseIf true then sunday will have red color
minYearnumberno1970Minimum year
maxYearnumberno2020Maximum year
disableDaysArrayno[]Disable dates that in the defined day. Day must defined in ordered index (0=sunday, 1=monday, 2=tuesday, 3=wednesday, 4=thursday, 5=friday, 6=saturday)

Callback Events

NameReturn TypeDescription
getSelectedDatestringReturn selected date

License

  • License: MIT

Author

  • Author: thomascsd
2.0.0

10 months ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago